Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008800Openbravo ERPA. Platformpublic2009-04-28 11:242009-04-30 00:00
FrancescoFinamore 
alostale 
urgentmajorhave not tried
closedduplicate 
20rPath Linux
2.50 
 
Core
No
0008800: export module
i have created my first module , with one table and a simple window with one tab linked to the table , it works but when i go to launch ant export database -Dmodule=org.cbt.examples i have this error :
Submodel loaded
Path: /home/finamore/openbravowk/ob250/openbravo/modules/org.cbt.examples/src-db/database/model
[exportdatabase] DataSet(0) (name: AD)
Exporting module: My first module
Database [name=PostgreSql server; 1 tables; 0 sequences; 0 views; 0 functions; 0 triggers]
Path: /home/finamore/openbravowk/ob250/openbravo/modules/org.cbt.examples/src-db/database/sourcedata
Exporting table: AD_Process to module My first module
Exporting table: AD_Element to module My first module
[exportdatabase] java.lang.NullPointerException
[exportdatabase] at org.apache.ddlutils.io.DataWriter.write(DataWriter.java:384)
[exportdatabase] at org.apache.ddlutils.io.DataWriter.write(DataWriter.java:602)
[exportdatabase] at org.apache.ddlutils.io.DatabaseDataIO.writeDataForTableToXML(DatabaseDataIO.java:487)
[exportdatabase] at org.openbravo.ddlutils.task.ExportDatabase.doExecute(ExportDatabase.java:263)
[exportdatabase] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:116)
[exportdatabase] at org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializingTask.java:79)
[exportdatabase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[exportdatabase] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[exportdatabase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exportdatabase] at java.lang.reflect.Method.invoke(Method.java:597)
[exportdatabase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exportdatabase] at org.apache.tools.ant.Task.perform(Task.java:348)
[exportdatabase] at org.apache.tools.ant.Target.execute(Target.java:357)
[exportdatabase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[exportdatabase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[exportdatabase] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[exportdatabase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[exportdatabase] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[exportdatabase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[exportdatabase] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[exportdatabase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exportdatabase] at java.lang.reflect.Method.invoke(Method.java:597)
[exportdatabase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exportdatabase] at org.apache.tools.ant.Task.perform(Task.java:348)
[exportdatabase] at org.apache.tools.ant.Target.execute(Target.java:357)
[exportdatabase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[exportdatabase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[exportdatabase] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[exportdatabase] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exportdatabase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[exportdatabase] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[exportdatabase] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[exportdatabase] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[exportdatabase] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

I controlled the result of the export and the xml of the table is correct but under sourcedata there is only one file AD_element.xml and it is empty.
Create module
value the tabs of :
Dependency
Data Package
DB Prefix

Create a table ex_software with these fields
  ex_software_id character varying(32) NOT NULL,
  ad_client_id character varying(32) NOT NULL,
  ad_org_id character varying(32) NOT NULL,
  isactive character(1) NOT NULL DEFAULT 'Y'::bpchar,
  created timestamp without time zone NOT NULL DEFAULT now(),
  createdby character varying(32) NOT NULL,
  updated timestamp without time zone NOT NULL DEFAULT now(),
  updatedby character varying(32) NOT NULL,
  "name" character varying(60) NOT NULL,
Create a Window Software with one tab linked to ex_software table
Compile Window
launch from command line :
ant export.database -Dmodule=org.cbt.examples
250MP1, Modularity
duplicate of defect 0008566pi closed marvintm NPE in org.apache.ddlutils.io.DataWriter.write(DataWriter.java:373) when export.database with -Dmodule parameter 
Issue History
2009-04-28 11:24FrancescoFinamoreNew Issue
2009-04-28 11:24FrancescoFinamoreAssigned To => jpabloae
2009-04-28 11:35jpabloaeAssigned Tojpabloae => rafaroda
2009-04-28 14:06psarobeTag Attached: 250MP1
2009-04-28 14:06psarobeTag Attached: Modularity
2009-04-28 14:07psarobeAssigned Torafaroda => alostale
2009-04-28 14:07psarobePrioritynormal => urgent
2009-04-28 14:07psarobeSeverityminor => major
2009-04-28 14:07psarobeCategoryK. Packaging => A. Platform
2009-04-28 14:07psarobeStatusnew => scheduled
2009-04-28 14:07psarobefix_in_branch => pi
2009-04-29 11:31alostaleRegression testing => No
2009-04-29 11:31alostaleRelationship addedduplicate of 0008566
2009-04-29 11:31alostaleStatusscheduled => closed
2009-04-29 11:31alostaleDuplicate ID0 => 8566
2009-04-29 11:31alostaleResolutionopen => duplicate
2009-04-30 00:00anonymoussf_bug_id0 => 2783995

There are no notes attached to this issue.