Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0008939 | Openbravo ERP | K. Packaging | public | 2009-05-07 00:11 | 2009-07-26 22:11 | 
  | 
| Reporter | digitalbug |   | 
| Assigned To | alostale |   | 
| Priority | normal | Severity | critical | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 20 | OS Version | rPath Linux | 
| Product Version | pi |   | 
| Target Version |  | Fixed in Version | 2.50MP3 |   | 
| Merge Request Status |  | 
| Review Assigned To |  | 
| 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 | 0008939: Null Pointer Exception at packaging a Industry template | 
| Description | 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) | 
| Steps To Reproduce | - 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 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | 250MP3releasecandidate | 
| Relationships | | 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  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2009-05-07 00:11 | digitalbug | New Issue |  | 
| 2009-05-07 00:11 | digitalbug | Assigned To |  => jpabloae | 
| 2009-05-07 00:17 | jpabloae | Assigned To | jpabloae => rafaroda | 
| 2009-05-07 10:05 | rafaroda | Assigned To | rafaroda => alostale | 
| 2009-05-07 10:08 | rafaroda | Note Added: 0016121 |  | 
| 2009-05-07 10:08 | rafaroda | Status | new => feedback | 
| 2009-05-07 15:31 | digitalbug | Note Added: 0016136 |  | 
| 2009-05-07 16:15 | alostale | Note Added: 0016143 |  | 
| 2009-05-07 17:28 | digitalbug | Note Added: 0016150 |  | 
| 2009-05-08 12:35 | alostale | Regression testing |  => No | 
| 2009-05-08 12:35 | alostale | Relationship added | duplicate of 0008358 | 
| 2009-05-08 12:35 | alostale | Status | feedback => closed | 
| 2009-05-08 12:35 | alostale | Note Added: 0016174 |  | 
| 2009-05-08 12:35 | alostale | Duplicate ID | 0 => 8358 | 
| 2009-05-08 12:35 | alostale | Resolution | open => duplicate | 
| 2009-05-08 13:37 | hgbot | Checkin |  | 
| 2009-05-08 13:37 | hgbot | Note Added: 0016178 |  | 
| 2009-05-08 13:37 | hgbot | Status | closed => resolved | 
| 2009-05-08 13:37 | hgbot | Resolution | duplicate => fixed | 
| 2009-05-08 13:37 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/80bcdfbac81abc026d4cb1e0ee0028bb5320ff78 [^] | 
| 2009-05-08 15:16 | alostale | Relationship added | related to 0008963 | 
| 2009-05-08 15:16 | alostale | Relationship deleted | related to 0008963 | 
| 2009-05-08 15:16 | alostale | Relationship added | related to 0008968 | 
| 2009-05-08 15:23 | hgbot | Checkin |  | 
| 2009-05-08 15:23 | hgbot | Note Added: 0016188 |  | 
| 2009-05-08 15:23 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/80bcdfbac81abc026d4cb1e0ee0028bb5320ff78 [^] => http://code.openbravo.com/erp/devel/pi/rev/20d4702b048977ecf9994c58ed6f17c827fc3adc [^] | 
| 2009-05-25 18:16 | psarobe | Status | resolved => closed | 
| 2009-05-26 00:00 | anonymous | sf_bug_id | 0 => 2796601 | 
| 2009-07-03 13:14 | hgbot | Checkin |  | 
| 2009-07-03 13:14 | hgbot | Note Added: 0017875 |  | 
| 2009-07-03 13:14 | hgbot | Status | closed => resolved | 
| 2009-07-03 13:14 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/20d4702b048977ecf9994c58ed6f17c827fc3adc [^] => http://code.openbravo.com/erp/devel/pi/rev/47beb4c26a19ddace47e7b1320026d4fab916d93 [^] | 
| 2009-07-03 13:14 | hgbot | Checkin |  | 
| 2009-07-03 13:14 | hgbot | Note Added: 0017877 |  | 
| 2009-07-03 13:14 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/47beb4c26a19ddace47e7b1320026d4fab916d93 [^] => http://code.openbravo.com/erp/devel/pi/rev/0ab81537e7d3d51fea490e63971c7dedc5dacce1 [^] | 
| 2009-07-21 16:24 | psarobe | Fixed in Version | 2.50MP1 => 2.50MP3 | 
| 2009-07-21 16:26 | psarobe | Tag Attached: 250MP3releasecandidate |  | 
| 2009-07-26 22:11 | psarobe | Status | resolved => closed | 
	| 
		Notes	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				Hi, 
 
Did you first run: ant export.config.script  
 
Please let us know. 
 
Thanks.			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				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.			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			| 
				Could you post the exception you get when executing export.config.script?			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				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			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				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   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0016188)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2009-05-08 15:23   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0017875)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2009-07-03 13:14   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0017877)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2009-07-03 13:14   
							 | 
		 
		 
	 | 
	
		
	 |