Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007836
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Otherstrivialhave not tried2009-02-26 11:472013-06-18 13:03
ReporterFrancescoFinamoreView Statuspublic 
Assigned Tomtaal 
PriorityhighResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision.
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_11
OS VersionrPath LinuxDatabase version8.3.5Ant version1.7.1
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007836: Create the file .obx

DescriptionHi guys :

I read on the wiki http://wiki.openbravo.com/wiki/Projects/Modularity/Developers_Guide#Publish_the_.obx_file_of_a_Module [^] but isn't clear how to create the file .obx for a new module.
Tags250MP1
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0015793)
mtaal (manager)
2009-04-27 15:34

Hi Fransesco,
This issue is already a few months I see. There is a new developers guide:
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide_Index [^]

Can you check if it gives better info? Especially the first howto?

gr. Martin
(0015825)
FrancescoFinamore (reporter)
2009-04-28 10:19

Ok now 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.
(0015828)
mtaal (manager)
2009-04-28 11:11

Hi Fransesco,
It seems that this is something else. Can you open a new issue for this?
Thanks!

gr. Martin
(0015830)
mtaal (manager)
2009-04-28 11:16

Is closed as a new issue is entered for the obstacle encountered.

gr. Martin
(0015833)
mtaal (manager)
2009-04-28 11:33

Hi Fransesco,
Correction, I think the issue you are encountering has been solved a few minutes back:
https://issues.openbravo.com/view.php?id=8566 [^]

So no need to enter a new issue afaics.
You can run:
ant export.database
without the -D option that should work.

gr. Martin
(0015834)
plujan (manager)
2009-04-28 11:52

It was a documentation issue.

- Issue History
Date Modified Username Field Change
2009-02-26 11:47 FrancescoFinamore New Issue
2009-02-26 11:47 FrancescoFinamore Assigned To => rafaroda
2009-03-04 08:42 rafaroda Assigned To rafaroda => rachelJohnston
2009-03-04 08:42 rafaroda Priority normal => high
2009-03-04 08:42 rafaroda Status new => acknowledged
2009-03-04 08:42 rafaroda Category 00. Application dictionary => D. Documentation
2009-04-23 16:05 psarobe Tag Attached: 250MP1
2009-04-27 15:31 pjuvara Assigned To rachelJohnston => mtaal
2009-04-27 15:33 mtaal Status acknowledged => scheduled
2009-04-27 15:33 mtaal fix_in_branch => pi
2009-04-27 15:34 mtaal Note Added: 0015793
2009-04-27 15:34 mtaal Status scheduled => feedback
2009-04-28 10:19 FrancescoFinamore Note Added: 0015825
2009-04-28 11:11 mtaal Note Added: 0015828
2009-04-28 11:14 mtaal Status feedback => scheduled
2009-04-28 11:16 mtaal Note Added: 0015830
2009-04-28 11:16 mtaal Status scheduled => resolved
2009-04-28 11:16 mtaal Resolution open => no change required
2009-04-28 11:16 mtaal Fixed in SCM revision => .
2009-04-28 11:16 mtaal fix_in_branch pi =>
2009-04-28 11:33 mtaal Note Added: 0015833
2009-04-28 11:52 plujan Regression testing => No
2009-04-28 11:52 plujan Status resolved => closed
2009-04-28 11:52 plujan Note Added: 0015834
2009-04-29 00:00 anonymous sf_bug_id 0 => 2783242
2009-11-09 15:01 jpabloae Project Openbravo ERP => Documentation
2009-11-10 12:56 jpabloae Category D. Documentation => ERP Developer's Guide
2011-06-20 15:41 jpabloae Category ERP Developer's Guide => ERP Developers Guide
2013-06-18 13:00 psanjuan Project Documentation => Openbravo ERP
2013-06-18 13:03 psanjuan Category ERP Developers Guide => Z. Others


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker