Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008939Openbravo ERPK. Packagingpublic2009-05-07 00:112009-07-26 22:11
digitalbug 
alostale 
normalcriticalalways
closedfixed 
20rPath Linux
pi 
2.50MP3 
Core
No
0008939: Null Pointer Exception at packaging a Industry template
When I try to packing my custom Template module:

Buildfile: build.xml

package.module:
     [echo] Validating Module...
[validateModules] 0 [main] WARN SystemValidation - Validation successfull no warnings or errors

obx.export.database:

obx.export.config.script:
[extractModule] 1 [main] ERROR org.openbravo.erpCommon.modules.ExtractModule - Error packaging module
[extractModule] java.lang.NullPointerException
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.createOBX(ExtractModule.java:211)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractModule(ExtractModule.java:164)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractPackage(ExtractModule.java:183)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extract(ExtractModule.java:94)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractName(ExtractModule.java:149)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModuleTask.doExecute(ExtractModuleTask.java:64)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModuleTask.execute(ExtractModuleTask.java:44)
[extractModule] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[extractModule] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[extractModule] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[extractModule] at java.lang.reflect.Method.invoke(Method.java:597)
[extractModule] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[extractModule] at org.apache.tools.ant.Task.perform(Task.java:348)
[extractModule] at org.apache.tools.ant.Target.execute(Target.java:357)
[extractModule] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[extractModule] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[extractModule] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[extractModule] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[extractModule] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[extractModule] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[extractModule] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[extractModule] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[extractModule] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
- add a custom template module.
- include the core module in Dependency tab.
- include the core module in Include tab.

ant package.module -Dmodule=my.package
250MP3releasecandidate
duplicate of defect 0008358 closed alostale When package.module is called without having exported the module, the process crashes without any meaningful message 
related to defect 0008968 closed alostale Cannot package industry template 
Issue History
2009-05-07 00:11digitalbugNew Issue
2009-05-07 00:11digitalbugAssigned To => jpabloae
2009-05-07 00:17jpabloaeAssigned Tojpabloae => rafaroda
2009-05-07 10:05rafarodaAssigned Torafaroda => alostale
2009-05-07 10:08rafarodaNote Added: 0016121
2009-05-07 10:08rafarodaStatusnew => feedback
2009-05-07 15:31digitalbugNote Added: 0016136
2009-05-07 16:15alostaleNote Added: 0016143
2009-05-07 17:28digitalbugNote Added: 0016150
2009-05-08 12:35alostaleRegression testing => No
2009-05-08 12:35alostaleRelationship addedduplicate of 0008358
2009-05-08 12:35alostaleStatusfeedback => closed
2009-05-08 12:35alostaleNote Added: 0016174
2009-05-08 12:35alostaleDuplicate ID0 => 8358
2009-05-08 12:35alostaleResolutionopen => duplicate
2009-05-08 13:37hgbotCheckin
2009-05-08 13:37hgbotNote Added: 0016178
2009-05-08 13:37hgbotStatusclosed => resolved
2009-05-08 13:37hgbotResolutionduplicate => fixed
2009-05-08 13:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/80bcdfbac81abc026d4cb1e0ee0028bb5320ff78 [^]
2009-05-08 15:16alostaleRelationship addedrelated to 0008963
2009-05-08 15:16alostaleRelationship deletedrelated to 0008963
2009-05-08 15:16alostaleRelationship addedrelated to 0008968
2009-05-08 15:23hgbotCheckin
2009-05-08 15:23hgbotNote Added: 0016188
2009-05-08 15:23hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/80bcdfbac81abc026d4cb1e0ee0028bb5320ff78 [^] => http://code.openbravo.com/erp/devel/pi/rev/20d4702b048977ecf9994c58ed6f17c827fc3adc [^]
2009-05-25 18:16psarobeStatusresolved => closed
2009-05-26 00:00anonymoussf_bug_id0 => 2796601
2009-07-03 13:14hgbotCheckin
2009-07-03 13:14hgbotNote Added: 0017875
2009-07-03 13:14hgbotStatusclosed => resolved
2009-07-03 13:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/20d4702b048977ecf9994c58ed6f17c827fc3adc [^] => http://code.openbravo.com/erp/devel/pi/rev/47beb4c26a19ddace47e7b1320026d4fab916d93 [^]
2009-07-03 13:14hgbotCheckin
2009-07-03 13:14hgbotNote Added: 0017877
2009-07-03 13:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/47beb4c26a19ddace47e7b1320026d4fab916d93 [^] => http://code.openbravo.com/erp/devel/pi/rev/0ab81537e7d3d51fea490e63971c7dedc5dacce1 [^]
2009-07-21 16:24psarobeFixed in Version2.50MP1 => 2.50MP3
2009-07-21 16:26psarobeTag Attached: 250MP3releasecandidate
2009-07-26 22:11psarobeStatusresolved => closed

Notes
(0016121)
rafaroda   
2009-05-07 10:08   
Hi,

Did you first run: ant export.config.script

Please let us know.

Thanks.
(0016136)
digitalbug   
2009-05-07 15:31   
Hi.

Sorry. I forgot to call export.config.script.

But now, when I call this target before of 'ant package.module', I have the same issue.
(0016143)
alostale   
2009-05-07 16:15   
Could you post the exception you get when executing export.config.script?
(0016150)
digitalbug   
2009-05-07 17:28   
dig@digital-bug:~/Documents/apsis/operass/workspace/openbravo$ ant export.config.script
Buildfile: build.xml

init:

set.code.rev:

code.rev:

export.config.script:

init:

core.lib:

init:

compile:

build.jar:

build:

copy.core.lib:

export.config.script:
Initializing in-memory model...
Building runtime model
Model read in-memory, generating mapping...
Dal layer initialized
Loading model from XML files
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom/src-db/database/model
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom.module/src-db/database/model
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom.pack/src-db/database/model
Loading model for module. Path: /home/dig/Documents/apsis/operass/workspace/openbravo/src-db/database/model
Loading model for module. Path: /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom/src-db/database/model
Loading model for module. Path: /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom.pack/src-db/database/model
Loading original data from XML files
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom/src-db/database/sourcedata
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom.module/src-db/database/sourcedata
[exportconfigscript] /home/dig/Documents/apsis/operass/workspace/openbravo/modules/org.openbravo.custom.pack/src-db/database/sourcedata
Loading complete model from current database
Reading tables...
Reading views...
Reading sequences...
Reading triggers...
Reading functions...
Sorting foreign keys and checks...
Starting function and trigger standardization.
Creating submodels for modules
Creating submodel for module: Custom
Creating submodel for module: Custom module
Creating submodel for module: core
Creating submodel for module: Custom pack
Comparing models...
Module added to comparison: 8491399B703A435E83C3620895102E4A
Module added to comparison: 9EDD11B07E97449484BC1F2B69871D8B
Module added to comparison: 0
Module added to comparison: ED219D8736904DAFA3A8C11BC8ECC3BC
Comparing table: AD_AUXILIARINPUT
Comparing table: AD_CALLOUT
Comparing table: AD_COLUMN
Comparing table: AD_DATASET
Comparing table: AD_DATASET_COLUMN
Comparing table: AD_DATASET_TABLE
Comparing table: AD_ELEMENT
Comparing table: AD_EXCEPTIONS
Comparing table: AD_FIELD
Comparing table: AD_FIELDGROUP
Comparing table: AD_FORM
Comparing table: AD_MENU
Comparing table: AD_MESSAGE
Comparing table: AD_MODEL_OBJECT
Comparing table: AD_MODEL_OBJECT_MAPPING
Comparing table: AD_MODEL_OBJECT_PARA
Comparing table: AD_MODULE
Comparing table: AD_MODULE_DBPREFIX
Comparing table: AD_MODULE_DEPENDENCY
Comparing table: AD_PACKAGE
Comparing table: AD_PROCESS
Comparing table: AD_PROCESS_PARA
Comparing table: AD_REFERENCE
Comparing table: AD_REF_LIST
Comparing table: AD_REF_SEARCH
Comparing table: AD_REF_SEARCH_COLUMN
Comparing table: AD_REF_TABLE
Comparing table: AD_TAB
Comparing table: AD_TABLE
Comparing table: AD_TEXTINTERFACES
Comparing table: AD_TREENODE
Comparing table: AD_VAL_RULE
Comparing table: AD_WF_NODE
Comparing table: AD_WF_NODENEXT
Comparing table: AD_WINDOW
Comparing table: AD_WORKFLOW
Changes that couldn't be exported to the config script:
*******************************************************
Row removed from table [AD_MODULE_DEPENDENCY]: <AD_MODULE_DEPENDENCY: AD_MODULE_DEPENDENCY_ID = 5637AF2160AF43719ECA013A8FD0531E, AD_CLIENT_ID = 0, AD_ORG_ID = 0, ISACTIVE = Y, CREATED = null, CREATEDBY = null, UPDATED = null, UPDATEDBY = null, AD_MODULE_ID = ED219D8736904DAFA3A8C11BC8ECC3BC, AD_DEPENDENT_MODULE_ID = 0, STARTVERSION = 2.50.10440, ENDVERSION = null, ISINCLUDED = Y, DEPENDANT_MODULE_NAME = core>
New row in table [AD_MODULE]: <ADModule(9EDD11B07E97449484BC1F2B69871D8B) (name: Custom module, version: 0.0.1, language: 192)>
New row in table [AD_MODULE_DEPENDENCY]: <ModuleDependency(004356C75CEE4185B7D9EEABF7F111E8) (module: 8491399B703A435E83C3620895102E4A, dependentModule: 0, firstVersion: 2.50.10440)>
New row in table [AD_MODULE_DEPENDENCY]: <ModuleDependency(8EB21D5A2F8749928D3CC907F395B084) (module: 8491399B703A435E83C3620895102E4A, dependentModule: ED219D8736904DAFA3A8C11BC8ECC3BC, firstVersion: 0.0.1)>
New row in table [AD_MODULE_DEPENDENCY]: <ModuleDependency(A150CC3AF71E485592B5F81684044BBF) (module: ED219D8736904DAFA3A8C11BC8ECC3BC, dependentModule: 9EDD11B07E97449484BC1F2B69871D8B, firstVersion: 0.0.1)>
New row in table [AD_MODULE_DEPENDENCY]: <ModuleDependency(A150CC3AF71E485592B5F81684044BBF) (module: ED219D8736904DAFA3A8C11BC8ECC3BC, dependentModule: 9EDD11B07E97449484BC1F2B69871D8B, firstVersion: 0.0.1)>
New row in table [AD_MODULE_DEPENDENCY]: <ModuleDependency(A150CC3AF71E485592B5F81684044BBF) (module: ED219D8736904DAFA3A8C11BC8ECC3BC, dependentModule: 9EDD11B07E97449484BC1F2B69871D8B, firstVersion: 0.0.1)>

BUILD SUCCESSFUL
Total time: 3 minutes 31 seconds
dig@digital-bug:~/Documents/apsis/operass/workspace/openbravo$ ant package.module -Dmodule=org.openbravo.custom
Buildfile: build.xml

package.module:
     [echo] Validating Module...
[validateModules] 0 [main] WARN SystemValidation - Validation successfull no warnings or errors

obx.export.database:

obx.export.config.script:
[extractModule] 1 [main] ERROR org.openbravo.erpCommon.modules.ExtractModule - Error packaging module
[extractModule] java.lang.NullPointerException
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.createOBX(ExtractModule.java:211)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractModule(ExtractModule.java:164)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractPackage(ExtractModule.java:183)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractPackage(ExtractModule.java:187)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extract(ExtractModule.java:94)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModule.extractName(ExtractModule.java:149)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModuleTask.doExecute(ExtractModuleTask.java:64)
[extractModule] at org.openbravo.erpCommon.modules.ExtractModuleTask.execute(ExtractModuleTask.java:44)
[extractModule] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[extractModule] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[extractModule] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[extractModule] at java.lang.reflect.Method.invoke(Method.java:597)
[extractModule] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[extractModule] at org.apache.tools.ant.Task.perform(Task.java:348)
[extractModule] at org.apache.tools.ant.Target.execute(Target.java:357)
[extractModule] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[extractModule] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[extractModule] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[extractModule] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[extractModule] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[extractModule] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[extractModule] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[extractModule] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[extractModule] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

BUILD SUCCESSFUL
Total time: 1 minute 11 seconds
(0016174)
alostale   
2009-05-08 12:35   
Please ensure this bug is not a duplicate of 0008358: check you have in your working copy changeset 500bea73b740.

Anyway follow this proces:
ant export.database
ant export.config.script
ant package.module
(0016178)
hgbot   
2009-05-08 13:37   
Repository: erp/devel/pi
Changeset: 80bcdfbac81abc026d4cb1e0ee0028bb5320ff78
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri May 08 13:36:52 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/80bcdfbac81abc026d4cb1e0ee0028bb5320ff78 [^]

fixed bug 0008939: Null Pointer Exception at packaging a Industry template

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---
(0016188)
hgbot   
2009-05-08 15:23   
Repository: erp/devel/pi
Changeset: 20d4702b048977ecf9994c58ed6f17c827fc3adc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri May 08 15:23:22 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/20d4702b048977ecf9994c58ed6f17c827fc3adc [^]

fixed bug 0008939: Null Pointer Exception at packaging a Industry template

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---
(0017875)
hgbot   
2009-07-03 13:14   
Repository: erp/devel/pi
Changeset: 47beb4c26a19ddace47e7b1320026d4fab916d93
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri May 08 13:36:52 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/47beb4c26a19ddace47e7b1320026d4fab916d93 [^]

fixed bug 0008939: Null Pointer Exception at packaging a Industry template

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---
(0017877)
hgbot   
2009-07-03 13:14   
Repository: erp/devel/pi
Changeset: 0ab81537e7d3d51fea490e63971c7dedc5dacce1
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri May 08 15:23:22 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0ab81537e7d3d51fea490e63971c7dedc5dacce1 [^]

fixed bug 0008939: Null Pointer Exception at packaging a Industry template

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---