Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo / JPOX]
[Teneo / JPOX] [message #608598] Wed, 27 June 2007 09:32
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Hi,

I need to use many *Package.eINSTANCE and I would like to initialize
jpoxDataStore with all of them.

I use this code :

EPackage[] packageArray = new EPackage[] {ApprolesPackage.eINSTANCE,
IdmapPackage.eINSTANCE, BasePackage.eINSTANCE, RegistryPackage.eINSTANCE};

[...]

jpoxDataStore.setEPackages(packageArray);
jpoxDataStore.initialize();

And everything works well.


But an exception is thrown when I add another *Package.eINSTANCE in the
array, and I don't see why - it occurs when the initialize() method is
called by the jpoxDataStore object.

[07-6-27 12:02:50:847 EEST] 0000001d ServletWrappe E SRVE0068E:
Uncaught exception thrown in one of the service methods of the servlet:
IdMap. Exception thrown : javax.jdo.JDOFatalInternalException:
java.lang.NullPointerException
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesA ndValidate(RDBMSManager.java:3342)
at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManage r.java:2554)
at
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RD BMSManager.java:2406)
at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.ja va:821)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createSchema(JpoxDa taStore.java:508)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)
at
com.ibm.isclite.datastore.global.DatastoreInstall.initDb(Dat astoreInstall.java:94)
at
com.ibm.isclite.datastore.global.DatastoreInstall.<init>(DatastoreInstall.java:70)
at idmap.IdMapPortlet.init(IdMapPortlet.java:66)
at javax.portlet.GenericPortlet.init(GenericPortlet.java:85)
at
com.ibm.ws.portletcontainer.core.PortletServlet.doInit(Portl etServlet.java:400)

[...]

NestedThrowablesStackTrace:
java.lang.NullPointerException
at
org.jpox.store.rdbms.table.AbstractTable.addDatastoreField(A bstractTable.java:223)
at
org.jpox.store.rdbms.table.ClassTable.runSpecifiedCallbacks( ClassTable.java:1045)
at org.jpox.store.rdbms.table.ClassTable.runCallBacks(ClassTabl e.java:891)
at
org.jpox.store.rdbms.table.ClassTable.addFieldMetaData(Class Table.java:578)
at org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable .java:397)
at
org.jpox.store.rdbms.table.ClassTable.initializeForClass(Cla ssTable.java:831)
at org.jpox.store.rdbms.table.ClassTable.initialize(ClassTable. java:269)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClass Tables(RDBMSManager.java:2950)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesA ndValidate(RDBMSManager.java:3311)
at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManage r.java:2554)
at
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RD BMSManager.java:2406)
at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.ja va:821)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createSchema(JpoxDa taStore.java:508)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)
at
com.ibm.isclite.datastore.global.DatastoreInstall.initDb(Dat astoreInstall.java:94)
at
com.ibm.isclite.datastore.global.DatastoreInstall.<init>(DatastoreInstall.java:70)

[...]

Quentin
Previous Topic:[Teneo] doUnload() in the StoreResource
Next Topic:Comment information in the DB
Goto Forum:
  


Current Time: Thu Jan 21 05:36:14 GMT 2021

Powered by FUDForum. Page generated in 0.01213 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top