Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0022926 | Openbravo ERP | Y. DBSourceManager | public | 2013-01-29 17:10 | 2013-02-05 22:44 |
Reporter | neil_smith | ||||
Assigned To | Sandrahuguet | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | 3.0MP17.2 | ||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | eduardo_Argal | ||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0022926: Smartbuild hangs on database insert (InitializeAcctDimensionsInClient) | ||||
Description | On my new installation, when I run an 'ant smartbuild -Dlocal=no' after a module installation, I get an error in org.openbravo.modulescript.InitializeAcctDimensionsInClient (moduleScript). It is trying to insert all the document types in the database again and violates unique key constraint ad_client_acctdimension.ad_client_unique. Now I can't build my app, totally stuck... Thanks for your time Here is the whole exception: [java] 114770 INFO - Executing moduleScript: org.openbravo.modulescript.InitializeAcctDimensionsInClient [java] 114784 ERROR - SQL error in query: INSERT INTO ad_client_acctdimension(ad_client_acctdimension_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, dimension, docbasetype, show_in_header, show_in_lines, show_in_breakdown)values (get_uuid(), ? , '0', 'Y', now(), '0', now(), '0', 'BP', 'ARI', 'Y', 'N', 'N')Exception:org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ad_client_unique" [java] Détail : Key (ad_client_id, dimension, docbasetype)=(398C673494BD4E5DB4B227C4FCA52580, BP, ARI) already exists. [java] 114907 ERROR - Error executing moduleScript org.openbravo.modulescript.InitializeAcctDimensionsInClient: @CODE=0@ERROR: duplicate key value violates unique constraint "ad_client_unique" [java] Détail : Key (ad_client_id, dimension, docbasetype)=(398C673494BD4E5DB4B227C4FCA52580, BP, ARI) already exists. [java] 114937 ERROR - Error executing moduleScript: org.openbravo.modulescript.InitializeAcctDimensionsInClient [java] Execution of moduleScript org.openbravo.modulescript.InitializeAcctDimensionsInClientfailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:173) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38) [java] Exception in thread "main" Execution of moduleScript org.openbravo.modulescript.InitializeAcctDimensionsInClientfailed. [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:248) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38) [java] Caused by: Execution of moduleScript org.openbravo.modulescript.InitializeAcctDimensionsInClientfailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:173) [java] ... 2 more [java] --- Nested Exception --- [java] Execution of moduleScript org.openbravo.modulescript.InitializeAcctDimensionsInClientfailed. [java] at org.openbravo.modulescript.ModuleScriptHandler.execute(ModuleScriptHandler.java:68) [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:173) [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:86) [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:38) | ||||
Steps To Reproduce | On a new installation (I have 3.0MP17.2, but I think it would reproduce with the last release...) Install an upgrade of a module or a new module run ant smartbuild -Dlocal=no | ||||
Proposed Solution | In previous versions, the InitializeAcctDimensionsInClient class was not in the src-util/moduleScript/src/org/openbravo/modulescript folder, so it wasn't executed when smartbuild. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-01-29 17:10 | neil_smith | New Issue | |||
2013-01-29 17:10 | neil_smith | Assigned To | => marvintm | ||
2013-01-29 17:10 | neil_smith | Modules | => Core | ||
2013-01-29 17:10 | neil_smith | Triggers an Emergency Pack | => No | ||
2013-01-29 17:11 | neil_smith | Issue Monitored: neil_smith | |||
2013-02-04 18:15 | marvintm | OBNetwork customer | => No | ||
2013-02-04 18:15 | marvintm | Assigned To | marvintm => Sandrahuguet | ||
2013-02-04 18:15 | marvintm | Priority | immediate => high | ||
2013-02-04 18:15 | marvintm | Severity | critical => major | ||
2013-02-04 18:18 | Sandrahuguet | Note Added: 0056138 | |||
2013-02-04 18:18 | Sandrahuguet | Status | new => feedback | ||
2013-02-05 07:27 | neil_smith | Note Added: 0056142 | |||
2013-02-05 09:34 | Sandrahuguet | Note Added: 0056143 | |||
2013-02-05 09:51 | neil_smith | Note Added: 0056145 | |||
2013-02-05 09:52 | neil_smith | Note Added: 0056146 | |||
2013-02-05 10:10 | Sandrahuguet | Note Added: 0056147 | |||
2013-02-05 12:37 | hgbot | Checkin | |||
2013-02-05 12:37 | hgbot | Note Added: 0056159 | |||
2013-02-05 12:37 | hgbot | Status | feedback => resolved | ||
2013-02-05 12:37 | hgbot | Resolution | open => fixed | ||
2013-02-05 12:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0c05ff4e91d303288a9ef360922d9a3c502280f9 [^] | ||
2013-02-05 12:46 | eduardo_Argal | Review Assigned To | => eduardo_Argal | ||
2013-02-05 12:46 | eduardo_Argal | Note Added: 0056161 | |||
2013-02-05 12:46 | eduardo_Argal | Status | resolved => closed | ||
2013-02-05 22:44 | hudsonbot | Checkin | |||
2013-02-05 22:44 | hudsonbot | Note Added: 0056196 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|