Srs,
Instalei o Adempiere 360 LTS e sobre ele a última versão no TRUNK do LBR. Aparentemente tudo funcionando normalmente, entretanto, quando tento executar o processo “Initial Client Setup” o Adempiere retorna a mensagem de Client Setup Failed e no terminal aparecem as seguintes mensagens:
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [11]
===========> DB.getSQLValue: SELECT COUNT(1) FROM R_Request WHERE (SalesRep_ID=? OR AD_Role_ID=?) AND Processed=‘N’ AND (DateNextAction IS NULL OR TRUNC(DateNextAction) <= TRUNC(SysDate)) AND (R_Status_ID IS NULL OR R_Status_ID IN (SELECT R_Status_ID FROM R_Status WHERE IsClosed=‘N’)) AND AD_Client_ID=0 AND AD_Org_ID=0 AND R_Request_ID NOT IN ( SELECT Record_ID FROM AD_Private_Access WHERE AD_Table_ID = 417 AND AD_User_ID <> 100 AND IsActive = ‘Y’ ) [11]
org.postgresql.util.PSQLException: ERRO: função trunc(timestamp without time zone) não existe
Dica: Nenhuma função corresponde com o nome e os tipos de argumentos informados. Você precisa adicionar conversões de tipo explícitas.
Posição: 121; State=42883; ErrorCode=0
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.compiere.db.StatementProxy.invoke(StatementProxy.java:100)
at $Proxy0.executeQuery(Unknown Source)
at org.compiere.util.DB.getSQLValueEx(DB.java:1258)
at org.compiere.util.DB.getSQLValue(DB.java:1301)
at org.compiere.util.DB.getSQLValue(DB.java:2094)
at org.compiere.apps.AMenu.getRequests(AMenu.java:657)
at org.compiere.apps.AMenu.updateInfo(AMenu.java:706)
at org.compiere.apps.AMenu$InfoUpdater.run(AMenu.java:804)
at java.lang.Thread.run(Thread.java:636)
-----------> MPInstancePara.set_Value: Info - Value too long - truncated to length=60 [12]
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [14]
===========> MOrgInfo.load: [Setup_3e4a60ff-0238-4dc2-8716-005adb58466f] - AD_Org_ID=2000004, SQL=SELECT AD_Client_ID,(SELECT AD_Language FROM AD_Client c WHERE AD_OrgInfo.AD_Client_ID = c.AD_Client_ID) AS AD_Language,AD_Org_ID,AD_OrgType_ID,C_Calendar_ID,C_Location_ID,ContactName,Created,CreatedBy,DropShip_Warehouse_ID,DUNS,EMail,Fax,IsActive,lbr_CCM,lbr_CNAE,lbr_CNPJ,LBR_DC_Org_ID,LBR_DC_WS_ID,LBR_DocPrint_ID,lbr_Fantasia,lbr_IE,lbr_Interest,lbr_LegalEntity,lbr_NFeEnv,lbr_Suframa,LBR_Tax_ID,Logo_ID,M_Warehouse_ID,OSEB_ContatoNFe,Parent_Org_ID,Phone,Phone2,ReceiptFooterMsg,Supervisor_ID,TaxID,TransferBank_ID,TransferCashBook_ID,Updated,UpdatedBy FROM AD_OrgInfo WHERE AD_Org_ID=? [14]
org.postgresql.util.PSQLException: ERRO: coluna “oseb_contatonfe” não existe
Posição: 424; State=42703; ErrorCode=0
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.compiere.db.StatementProxy.invoke(StatementProxy.java:100)
at $Proxy0.executeQuery(Unknown Source)
at org.compiere.model.PO.load(PO.java:1340)
at org.compiere.model.PO.saveNew(PO.java:2736)
at org.compiere.model.PO.save(PO.java:2082)
at org.compiere.model.PO.saveEx(PO.java:2166)
at org.compiere.model.MOrg.afterSave(MOrg.java:150)
at org.compiere.model.PO.saveFinish(PO.java:2196)
at org.compiere.model.PO.saveNew(PO.java:2757)
at org.compiere.model.PO.save(PO.java:2082)
at org.compiere.model.MSetup.createClient(MSetup.java:177)
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [14]
===========> MOrgInfo.saveNew: [Setup_3e4a60ff-0238-4dc2-8716-005adb58466f] - reloading [14]
-----------> MOrg.saveFinish: afterSave [14]
org.adempiere.exceptions.AdempiereException: SaveError
at org.compiere.model.PO.saveEx(PO.java:2173)
at org.compiere.model.MOrg.afterSave(MOrg.java:150)
at org.compiere.model.PO.saveFinish(PO.java:2196)
at org.compiere.model.PO.saveNew(PO.java:2757)
at org.compiere.model.PO.save(PO.java:2082)
at org.compiere.model.MSetup.createClient(MSetup.java:177)
at org.adempiere.process.InitialClientSetup.doIt(InitialClientSetup.java:218)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [14]
===========> MSetup.createClient: Organization NOT created [14]
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [14]
===========> InitialClientSetup.process: Create client failed [14]
org.adempiere.exceptions.AdempiereException: Create client failed
at org.adempiere.process.InitialClientSetup.doIt(InitialClientSetup.java:221)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
at java.lang.Thread.run(Thread.java:636)
-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [11]
===========> DB.getSQLValue: SELECT COUNT(1) FROM R_Request WHERE (SalesRep_ID=? OR AD_Role_ID=?) AND Processed=‘N’ AND (DateNextAction IS NULL OR TRUNC(DateNextAction) <= TRUNC(SysDate)) AND (R_Status_ID IS NULL OR R_Status_ID IN (SELECT R_Status_ID FROM R_Status WHERE IsClosed=‘N’)) AND AD_Client_ID=0 AND AD_Org_ID=0 AND R_Request_ID NOT IN ( SELECT Record_ID FROM AD_Private_Access WHERE AD_Table_ID = 417 AND AD_User_ID <> 100 AND IsActive = ‘Y’ ) [11]
org.postgresql.util.PSQLException: ERRO: função trunc(timestamp without time zone) não existe
Dica: Nenhuma função corresponde com o nome e os tipos de argumentos informados. Você precisa adicionar conversões de tipo explícitas.
Posição: 121; State=42883; ErrorCode=0
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.compiere.db.StatementProxy.invoke(StatementProxy.java:100)
at $Proxy0.executeQuery(Unknown Source)
at org.compiere.util.DB.getSQLValueEx(DB.java:1258)
at org.compiere.util.DB.getSQLValue(DB.java:1301)
at org.compiere.util.DB.getSQLValue(DB.java:2094)
at org.compiere.apps.AMenu.getRequests(AMenu.java:657)
at org.compiere.apps.AMenu.updateInfo(AMenu.java:706)
at org.compiere.apps.AMenu$InfoUpdater.run(AMenu.java:804)
at java.lang.Thread.run(Thread.java:636)
Agora o detalhe é que se tentar fazer o mesmo processo, inclusive com a mesma planilha (chart of accounts), no 360 LTS (sem o LBR) tudo funciona perfeitamente. Com isto vêm as perguntas:
-
Vocês tem alguma sugestão? Será que se usar uma versão mais antiga do Trunk não terei esse problema? É um erro conhecido?
-
Para criar uma nova organização, empresa, etc. é realmente necessário passar pelo processo “Initial Client Setup”?
Att,
Marcio