JpoxStoreException:Exception when determining refers to [message #92125] |
Mon, 30 July 2007 22: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?
|
|
|
Re: JpoxStoreException:Exception when determining refers to [message #92141 is a reply to message #92125] |
Tue, 31 July 2007 08:02  |
Eclipse User |
|
|
|
Hi,
How do you initialize the datastore?
You can debug and see why the eclass (the parameter to the StoreUtil.getEStructuralFeature method)
is null). This method is called from JpoxDataStore and the eclass is found using a class (see the
source code), is there anything special there?
gr. Martin
wangyan wrote:
> 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?
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: JpoxStoreException:Exception when determining refers to [message #609381 is a reply to message #92125] |
Tue, 31 July 2007 08:02  |
Eclipse User |
|
|
|
Hi,
How do you initialize the datastore?
You can debug and see why the eclass (the parameter to the StoreUtil.getEStructuralFeature method)
is null). This method is called from JpoxDataStore and the eclass is found using a class (see the
source code), is there anything special there?
gr. Martin
wangyan wrote:
> 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?
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03467 seconds