Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008566Openbravo ERPA. Platformpublic2009-04-14 15:452009-05-05 00:00
mtaal 
marvintm 
normalmajoralways
closedfixed 
5
pi 
pi2.50MP1 
Core
No
0008566: NPE in org.apache.ddlutils.io.DataWriter.write(DataWriter.java:373) when export.database with -Dmodule parameter
See the module created in this howto:
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_To_Create_and_Package_a_Module [^]

When I try to execute this module using this ant task:
ant export.database -Dmodule=org.openbravo.howto
I get a NPE (see attached file)
The strange thing is that when I do this:
ant export.database
it works fine.

gr. Martin
250MP1, Modularity
has duplicate defect 0008800 closed alostale export module 
log ant_export.log (5,021) 2009-04-14 15:46
https://issues.openbravo.com/file_download.php?file_id=1176&type=bug
Issue History
2009-04-14 15:45mtaalNew Issue
2009-04-14 15:45mtaalAssigned To => marvintm
2009-04-14 15:45mtaalRegression testing => No
2009-04-14 15:46mtaalFile Added: ant_export.log
2009-04-14 15:48mtaalNote Added: 0015361
2009-04-22 19:34psarobeTag Attached: Modularity
2009-04-22 19:41psarobeStatusnew => scheduled
2009-04-22 19:41psarobefix_in_branch => pi
2009-04-27 16:17marvintmTag Attached: 250MP1
2009-04-28 11:09hgbotCheckin
2009-04-28 11:09hgbotNote Added: 0015827
2009-04-28 11:09hgbotStatusscheduled => resolved
2009-04-28 11:09hgbotResolutionopen => fixed
2009-04-28 11:28hgbotCheckin
2009-04-28 11:28hgbotNote Added: 0015831
2009-04-28 11:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/55baf95c68df80e01128c9c1226e646b6bce8148 [^]
2009-04-29 11:31alostaleRelationship addedhas duplicate 0008800
2009-05-04 19:43psarobeStatusresolved => closed
2009-05-05 00:00anonymoussf_bug_id0 => 2786898

Notes
(0015361)
mtaal   
2009-04-14 15:48   
It seems to fail on the AD_Module_DBPrefix table, only that one is present in the exported module directory, in addition its content is incorrect:

<?xml version="1.0" encoding="UTF-8"?>
<data>
<!--BB5D6EE4FD024D22A7246F67FF69A37E-->
(0015827)
hgbot   
2009-04-28 11:09   
Repository: dbsourcemanager
Revision: 291
Author: marvintm
Date: 2009-04-28 11:09:55 +0200 (Tue, 28 Apr 2009)

Fixed issue 8566. Now there shouldn't be a null pointer exception when export.database is run with the -Dmodule option.

---
U trunk/src/org/openbravo/ddlutils/task/ExportDatabase.java
---

https://dev.openbravo.com/websvn/dbsourcemanager/?rev=291&sc=1 [^]
(0015831)
hgbot   
2009-04-28 11:28   
Repository: erp/devel/pi
Changeset: 55baf95c68df80e01128c9c1226e646b6bce8148
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Apr 28 11:13:06 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/55baf95c68df80e01128c9c1226e646b6bce8148 [^]

Fixed issue 8566. Now there shouldn't be a null pointer exception when export.database is run with the -Dmodule option.

---
M src-db/database/lib/dbsourcemanager.jar
---