JpoxStoreException:Exception when determining refers to [message #609376] |
Tue, 31 July 2007 02:44 |
Eclipse User |
|
|
|
Originally posted by: danceslower.sina.com
Hi,all
I have created a complicated model with EMF and this model is integrated
with another model, which means one model have reference to another
model.Then I use teneo jpox to map ecore to data table successfully.
However, when I tried to manipulate this model and make persistence of
it, an exception was throw out when initialize jpoxdatastore.Here is the
exception:
/////////////////////////////////
Exception in thread "main" org.eclipse.emf.teneo.jpox.JpoxStoreException:
Exception when determining
refers to
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createRefersToMap(J poxDataStore.java:783)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:244)
at com.ibm.crl.bo.tops.util.TestTeneoBom.main(TestTeneoBom.java :45)
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.teneo.util.StoreUtil.getEStructuralFeature(S toreUtil.java:353)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore$ReferenceTo.<init>(JpoxDataStore.java:1030)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createRefersToFromF ield(JpoxDataStore.java:868)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createRefersToMap(J poxDataStore.java:769)
... 2 more
////////////////////////////////////////
the strange thing is when a model is independent and not related to another
one, everything goes quite well.
Where is problem is, is it related to the interation between two models?
|
|
|
Powered by
FUDForum. Page generated in 0.10742 seconds