Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011007Openbravo ERPA. Platformpublic2009-10-16 10:262009-12-10 00:00
iperdomo 
marvintm 
urgentminoralways
closedno change required 
202.6.30-gentoo-r5
2.50MP5 
 
Core
No
0011007: apply.modules fails with a NPE when trying to install a module through command line
The apply.modules task fails with a NPE when you try to install a module in command line and not using the Module Management Console (MMC).

Reason:
Some step in the apply.modules task needs info in this tables: AD_MODULE_INSTALL, AD_MODULE_DEPENDENCY_INSTALL and AD_MODULE_DBPREFIX_INSTALL and since is not there fails. Records in this tables are inserted just when using the MMC.

Attached you'll find a apply.modules.log (in debug mode)
* Get the latest code (e.g. clone pi repo)
* Install the app. (ant setup, setup properties, ant install.source)
* Go to modules folder
* Get any public module directly to the modules folder
  e.g. /opt/AppsOpenbravo/modules $ hg clone https://code.openbravo.com/erp/mods/org.openbravo.concepts.xmlengine [^]
* Go to source root folder and execute: ant apply.modules -Dmodule=org.openbravo.concepts.xmlengine
The apply.modules should work command line.
Modularity
related to defect 0009931 closed marvintm ant apply.modules fails on fresh installation 
has duplicate defect 0011006 closed marvintm apply.modules fails with a NPE when trying to install a module through command line 
gz apply.modules.log.gz (294,038) 2009-10-16 10:26
https://issues.openbravo.com/file_download.php?file_id=1855&type=bug
Issue History
2009-10-16 10:26iperdomoNew Issue
2009-10-16 10:26iperdomoAssigned To => marvintm
2009-10-16 10:26iperdomoFile Added: apply.modules.log.gz
2009-10-16 10:27iperdomoRelationship addedrelated to 0009931
2009-10-16 10:27iperdomoTag Attached: Modularity
2009-10-16 12:22iperdomoRelationship addedhas duplicate 0011006
2009-10-16 14:01psarobeStatusnew => scheduled
2009-10-16 14:01psarobefix_in_branch => pi
2009-12-09 18:14marvintmNote Added: 0022599
2009-12-09 18:14marvintmStatusscheduled => closed
2009-12-09 18:14marvintmResolutionopen => no change required
2009-12-10 00:00anonymoussf_bug_id0 => 2911680

Notes
(0022599)
marvintm   
2009-12-09 18:14   
The apply.modules task is used by the rebuild window to build an already installed module. It shouldn't be used to apply a module which hasn't been installed through the application.

If you want to apply a module you have just uncompressed in the modules folder, you can just do:

ant smartbuild -Dlocal=no -Dapply.on.create=true