Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JpoxStoreException:Exception when determining refers to
JpoxStoreException:Exception when determining refers to [message #92125] Tue, 31 July 2007 02:44 Go to next message
Eclipse UserFriend
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 12:02 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 12:02 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:JpoxStoreException:Exception when determining refers to
Next Topic:[Announce] OCL Tools component proposal
Goto Forum:
  


Current Time: Mon Aug 15 17:07:17 GMT 2022

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

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

Back to the top