Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [teneo-jpox] jdoDatastore initialize failed on with mulitple ecores
[teneo-jpox] jdoDatastore initialize failed on with mulitple ecores [message #605325] Mon, 07 May 2007 08:01
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I have a xsd that references another xsd eg.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-portletentities.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="0.9.3.0"
xml:lang="en"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"

xmlns:portletentities=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-portletentities.xsd"

xmlns:base=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-base.xsd"

xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink">
<xs:import
namespace=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-base.xsd"
schemaLocation="ibm-portal-base.xsd"/>

I am successful in generating the enhanced classes.

But when I tried to generate the tables in the database using the
jdoDatastore.initialize command it failed with this:

13951 [main] ERROR JPOX.RDBMS.Schema - An exception was thrown while
adding/validating class(es) : null
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:468)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)

I have been successful in generating the schema for ibm-portal-base.xsd as
a standalone and as part of this schema ibm-portal-portletentities.xsd.
But it rollback when it tries to create the schema for portletentities.
The part it seems to rollback on seems to be related to section in
portletentities.xsd where it refers to base.xsd.

Am I missing a step?

Julia
Previous Topic:[Teneo+hibernate]
Next Topic:[Teneo]Failure to persist a reference (to subclass)
Goto Forum:
  


Current Time: Thu Jan 21 15:54:10 GMT 2021

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

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

Back to the top