Hi The list,

It was effectively the problem. The javapackage name should be used
instead of the module name... and it is in the documentation.

I have read the documentation one more time, and I get the following error:

ant export.database -Dmodule='org.openbravo.funambol'
Buildfile: build.xml

[..]

export.database.structure:
Initializing in-memory model...
Building runtime model
Model read in-memory, generating mapping...
Dal layer initialized
Database connection: jdbc:postgresql://localhost:5432/openbravo. User:
openbravo
[exportdatabase] Checking if database structure was modified locally.
[exportdatabase] Checking if data has changed in the application dictionary.
Database code revision: #0#
Source code revision: #0#
Subversion code revision not found.
Loading models for AD and RD Datasets
Exporting module: Funambol
Loading submodel from database...
Reading tables...
Reading views...
Reading sequences...
Reading triggers...
Reading functions...
Sorting foreign keys and checks...
Starting function and trigger standardization.
Validating Module...

Submodel loaded
Path: OpenbravoERP-2.50/modules/org.openbravo.funambol/src-db/database/model
[exportdatabase] DataSet(0) (name: AD)
Exporting module: Funambol
Database [name=PostgreSql server; 1 tables; 0 sequences; 0 views; 0
functions; 0 triggers]
Path:
OpenbravoERP-2.50/modules/org.openbravo.funambol/src-db/database/sourcedata
Exporting table: AD_Process to module Funambol
Exporting table: AD_Element to module Funambol
[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)


I was able to register the funambol module in the forge.
Normaly the java package should follow the java naming convention:
org.openbravo.funambol
I am using the version 2.5 of openbravo.
I was looking on how to change the debug level. But playing with
config/log4j.lcf didnt change anything.

Thanks for your help

Ismael Ciordia, Openbravo wrote:
> Hi Fabien,
> 
> the problem is that you have to use -Dmodule="yourModuleJavaPackage" instead
> of your module name.
> 
> Have a look to "Development build tasks" [1] for more details (at the end of
> the document you have some table with all build tasks, look for
> export.database. Although it is worth to read the whole document...
> 
> DBSourceManager repository is still in subversion, you can browse it in [2].
> 
> Regards,
> 
> Ismael
> 
> [1]
> http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Developmen
> t_Build_Tasks
> [2] https://dev.openbravo.com/websvn/dbsourcemanager/
> 
> -----Mensaje original-----
> De: Fabien Carrion [mailto:[email protected]]
> Enviado el: viernes, 22 de mayo de 2009 19:04
> Para: [email protected]
> Asunto: [Openbravo-development] ant export.database -Dmodule='Funambol'
> 
> 
> Hi the list,
> 
> I am following up the creation of the funambol module, and I found out
> a strange error:
> 
> export.database.structure:
> Initializing in-memory model...
> Building runtime model
> Model read in-memory, generating mapping...
> Dal layer initialized
> Database connection: jdbc:postgresql://localhost:5432/openbravo. User:
> openbravo
> [exportdatabase] Checking if database structure was modified locally.
> [exportdatabase] Checking if data has changed in the application dictionary.
> Database code revision: #0#
> Source code revision: #0#
> Subversion code revision not found.
> Loading models for AD and RD Datasets
> [exportdatabase] java.lang.NullPointerException
> [exportdatabase]      at
> org.openbravo.ddlutils.util.DBSMOBUtil.getIncludedModulesInModule(DBSMOBUtil
> .java:293)
> [exportdatabase]      at
> org.openbravo.ddlutils.util.DBSMOBUtil.getIncDependenciesForModuleList(DBSMO
> BUtil.java:267)
> [exportdatabase]      at
> org.openbravo.ddlutils.task.ExportDatabase.doExecute(ExportDatabase.java:142
> )
> [exportdatabase]      at
> org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:
> 116)
> [exportdatabase]      at
> org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializ
> ingTask.java:79)
> [exportdatabase]      at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 
> I am not sure I understand this error. How can I get more logging
> information on this errror? Where is the documentation of the DBSMOB
> project? Should I fill a bug report?
> Thanks
> --
> Fabien Carrion
> 
> ()  Campagne du ruban ASCII -- Contre les mails en html
> /\  contre les pieces-jointes Microsoft
> Web: http://fabien.carrion.free.fr/
> 
> ----------------------------------------------------------------------------
> --
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> Openbravo-development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbravo-development
> 

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Openbravo-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-development

Reply via email to