[Teneo] NoSuchMethodError exception when trying to add element to an EList [message #115924] |
Wed, 26 March 2008 14:30  |
Eclipse User |
|
|
|
Originally posted by: vnikolov.us.ibm.com
Hello Martin,
I get an exception while trying to add an element in a featuremap. I was
wondering if you can give me some hints what may be the problem? Or at
least to point me where I should start looking for the reason for the
problem?
Here is the exception trace:
Nested Exception is java.lang.NoSuchMethodError:
org/eclipse/emf/teneo/mapping/elist/PersistableFeatureMap.in verseAdd(Lorg/eclipse/emf/ecore/util/FeatureMap$Entry;Lorg/e clipse/emf/common/notify/NotificationChain;)Lorg/eclipse/emf /common/notify/NotificationChain;
at
org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:216)
at
org.eclipse.emf.teneo.jpox.elist.FeatureMapWrapper.didAdd(Fe atureMapWrapper.java:558)
at
org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:1)
at
org.eclipse.emf.common.util.DelegatingEList.addUnique(Delega tingEList.java:498)
at
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.doAddUnique(DelegatingNotifyingListImpl.java:315)
at
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:299)
at
org.eclipse.emf.ecore.util.DelegatingFeatureMap.addUnique(De legatingFeatureMap.java:1381)
at
org.eclipse.emf.common.util.DelegatingEList.add(DelegatingEL ist.java:479)
at
org.eclipse.emf.ecore.util.DelegatingFeatureMap.doAdd(Delega tingFeatureMap.java:521)
at
org.eclipse.emf.ecore.util.DelegatingFeatureMap.add(Delegati ngFeatureMap.java:1135)
at
org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList.add(F eatureMapUtil.java:646)
Here is the XMLSchema with the respective elements. I'm trying to add
square object into an shape list.
<xs:element name="shape" type="lib:Shape" abstract="true"/>
<xs:complexType name="Shape" abstract="true">
<!-- some elements and attributes --> </xs:complexType>
<xs:element name="square" type="lib:Square" substitutionGroup="lib:shape" />
<xs:complexType name="Square">
<xs:complexContent>
<xs:extension base="lib:Shape">
<xs:sequence>
<!-- some additional elements-->
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Thanks in advance!
Vladimir
|
|
|
|
|
Re: [Teneo] NoSuchMethodError exception when trying to add element to an EList [message #116092 is a reply to message #116078] |
Thu, 27 March 2008 05:46  |
Eclipse User |
|
|
|
Hi Vladimir,
For Teneo 0.8.0 you need EMF 2.3 or 2.4, Teneo 0.7.5 is for emf 2.2, I would advice to upgrade as
0.7.5 is not maintained actively.
gr. Martin
Vladimir Nikolov wrote:
> Hello Martin,
>
> Thanks for the response.
>
> My Teneo version is : 0.8.0.v200802122150
> My EMF version is : 2.2.1.v200609210005
>
> Regards,
> Vladimir
>
> Martin Taal wrote:
>> Hi Vladimir,
>> The inverseAdd method is implemented in the superclass of
>> PersistableFeatureMap: org.eclipse.emf.ecore.util.DelegatingFeatureMap
>>
>> So it seems that the emf jar's you are using are different from the
>> ones assumed by Teneo.
>> Which Teneo version and which EMF version are you using?
>>
>> gr. Martin
>>
>> Vladimir Nikolov wrote:
>>> Hello Martin,
>>>
>>> I get an exception while trying to add an element in a featuremap. I
>>> was wondering if you can give me some hints what may be the problem?
>>> Or at least to point me where I should start looking for the reason
>>> for the problem?
>>>
>>> Here is the exception trace:
>>>
>>> Nested Exception is java.lang.NoSuchMethodError:
>>> org/eclipse/emf/teneo/mapping/elist/PersistableFeatureMap.in verseAdd(Lorg/eclipse/emf/ecore/util/FeatureMap$Entry;Lorg/e clipse/emf/common/notify/NotificationChain;)Lorg/eclipse/emf /common/notify/NotificationChain;
>>>
>>> at
>>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:216)
>>>
>>> at
>>> org.eclipse.emf.teneo.jpox.elist.FeatureMapWrapper.didAdd(Fe atureMapWrapper.java:558)
>>>
>>> at
>>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:1)
>>>
>>> at
>>> org.eclipse.emf.common.util.DelegatingEList.addUnique(Delega tingEList.java:498)
>>>
>>> at
>>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.doAddUnique(DelegatingNotifyingListImpl.java:315)
>>>
>>> at
>>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:299)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.addUnique(De legatingFeatureMap.java:1381)
>>>
>>> at
>>> org.eclipse.emf.common.util.DelegatingEList.add(DelegatingEL ist.java:479)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.doAdd(Delega tingFeatureMap.java:521)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.add(Delegati ngFeatureMap.java:1135)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList.add(F eatureMapUtil.java:646)
>>>
>>>
>>>
>>> Here is the XMLSchema with the respective elements. I'm trying to add
>>> square object into an shape list.
>>>
>>> <xs:element name="shape" type="lib:Shape" abstract="true"/>
>>> <xs:complexType name="Shape" abstract="true">
>>> <!-- some elements and attributes -->
>>> </xs:complexType> <xs:element name="square" type="lib:Square"
>>> substitutionGroup="lib:shape" />
>>> <xs:complexType name="Square">
>>> <xs:complexContent>
>>> <xs:extension base="lib:Shape">
>>> <xs:sequence>
>>> <!-- some additional elements-->
>>> </xs:sequence>
>>> </xs:extension>
>>> </xs:complexContent>
>>> </xs:complexType>
>>>
>>>
>>> Thanks in advance!
>>> Vladimir
>>
>>
--
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: [Teneo] NoSuchMethodError exception when trying to add element to an EList [message #615994 is a reply to message #115924] |
Wed, 26 March 2008 15:07  |
Eclipse User |
|
|
|
Hi Vladimir,
The inverseAdd method is implemented in the superclass of PersistableFeatureMap:
org.eclipse.emf.ecore.util.DelegatingFeatureMap
So it seems that the emf jar's you are using are different from the ones assumed by Teneo.
Which Teneo version and which EMF version are you using?
gr. Martin
Vladimir Nikolov wrote:
> Hello Martin,
>
> I get an exception while trying to add an element in a featuremap. I was
> wondering if you can give me some hints what may be the problem? Or at
> least to point me where I should start looking for the reason for the
> problem?
>
> Here is the exception trace:
>
> Nested Exception is java.lang.NoSuchMethodError:
> org/eclipse/emf/teneo/mapping/elist/PersistableFeatureMap.in verseAdd(Lorg/eclipse/emf/ecore/util/FeatureMap$Entry;Lorg/e clipse/emf/common/notify/NotificationChain;)Lorg/eclipse/emf /common/notify/NotificationChain;
>
> at
> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:216)
>
> at
> org.eclipse.emf.teneo.jpox.elist.FeatureMapWrapper.didAdd(Fe atureMapWrapper.java:558)
>
> at
> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:1)
>
> at
> org.eclipse.emf.common.util.DelegatingEList.addUnique(Delega tingEList.java:498)
>
> at
> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.doAddUnique(DelegatingNotifyingListImpl.java:315)
>
> at
> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:299)
>
> at
> org.eclipse.emf.ecore.util.DelegatingFeatureMap.addUnique(De legatingFeatureMap.java:1381)
>
> at
> org.eclipse.emf.common.util.DelegatingEList.add(DelegatingEL ist.java:479)
> at
> org.eclipse.emf.ecore.util.DelegatingFeatureMap.doAdd(Delega tingFeatureMap.java:521)
>
> at
> org.eclipse.emf.ecore.util.DelegatingFeatureMap.add(Delegati ngFeatureMap.java:1135)
>
> at
> org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList.add(F eatureMapUtil.java:646)
>
>
>
> Here is the XMLSchema with the respective elements. I'm trying to add
> square object into an shape list.
>
> <xs:element name="shape" type="lib:Shape" abstract="true"/>
> <xs:complexType name="Shape" abstract="true">
> <!-- some elements and attributes --> </xs:complexType>
>
> <xs:element name="square" type="lib:Square"
> substitutionGroup="lib:shape" />
> <xs:complexType name="Square">
> <xs:complexContent>
> <xs:extension base="lib:Shape">
> <xs:sequence>
> <!-- some additional elements-->
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
>
>
> Thanks in advance!
> Vladimir
--
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: [Teneo] NoSuchMethodError exception when trying to add element to an EList [message #616005 is a reply to message #115936] |
Thu, 27 March 2008 05:37  |
Eclipse User |
|
|
|
Hello Martin,
Thanks for the response.
My Teneo version is : 0.8.0.v200802122150
My EMF version is : 2.2.1.v200609210005
Regards,
Vladimir
Martin Taal wrote:
> Hi Vladimir,
> The inverseAdd method is implemented in the superclass of
> PersistableFeatureMap: org.eclipse.emf.ecore.util.DelegatingFeatureMap
>
> So it seems that the emf jar's you are using are different from the ones
> assumed by Teneo.
> Which Teneo version and which EMF version are you using?
>
> gr. Martin
>
> Vladimir Nikolov wrote:
>> Hello Martin,
>>
>> I get an exception while trying to add an element in a featuremap. I
>> was wondering if you can give me some hints what may be the problem?
>> Or at least to point me where I should start looking for the reason
>> for the problem?
>>
>> Here is the exception trace:
>>
>> Nested Exception is java.lang.NoSuchMethodError:
>> org/eclipse/emf/teneo/mapping/elist/PersistableFeatureMap.in verseAdd(Lorg/eclipse/emf/ecore/util/FeatureMap$Entry;Lorg/e clipse/emf/common/notify/NotificationChain;)Lorg/eclipse/emf /common/notify/NotificationChain;
>>
>> at
>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:216)
>>
>> at
>> org.eclipse.emf.teneo.jpox.elist.FeatureMapWrapper.didAdd(Fe atureMapWrapper.java:558)
>>
>> at
>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:1)
>>
>> at
>> org.eclipse.emf.common.util.DelegatingEList.addUnique(Delega tingEList.java:498)
>>
>> at
>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.doAddUnique(DelegatingNotifyingListImpl.java:315)
>>
>> at
>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:299)
>>
>> at
>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.addUnique(De legatingFeatureMap.java:1381)
>>
>> at
>> org.eclipse.emf.common.util.DelegatingEList.add(DelegatingEL ist.java:479)
>> at
>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.doAdd(Delega tingFeatureMap.java:521)
>>
>> at
>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.add(Delegati ngFeatureMap.java:1135)
>>
>> at
>> org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList.add(F eatureMapUtil.java:646)
>>
>>
>>
>> Here is the XMLSchema with the respective elements. I'm trying to add
>> square object into an shape list.
>>
>> <xs:element name="shape" type="lib:Shape" abstract="true"/>
>> <xs:complexType name="Shape" abstract="true">
>> <!-- some elements and attributes --> </xs:complexType>
>> <xs:element name="square" type="lib:Square"
>> substitutionGroup="lib:shape" />
>> <xs:complexType name="Square">
>> <xs:complexContent>
>> <xs:extension base="lib:Shape">
>> <xs:sequence>
>> <!-- some additional elements-->
>> </xs:sequence>
>> </xs:extension>
>> </xs:complexContent>
>> </xs:complexType>
>>
>>
>> Thanks in advance!
>> Vladimir
>
>
|
|
|
Re: [Teneo] NoSuchMethodError exception when trying to add element to an EList [message #616006 is a reply to message #116078] |
Thu, 27 March 2008 05:46  |
Eclipse User |
|
|
|
Hi Vladimir,
For Teneo 0.8.0 you need EMF 2.3 or 2.4, Teneo 0.7.5 is for emf 2.2, I would advice to upgrade as
0.7.5 is not maintained actively.
gr. Martin
Vladimir Nikolov wrote:
> Hello Martin,
>
> Thanks for the response.
>
> My Teneo version is : 0.8.0.v200802122150
> My EMF version is : 2.2.1.v200609210005
>
> Regards,
> Vladimir
>
> Martin Taal wrote:
>> Hi Vladimir,
>> The inverseAdd method is implemented in the superclass of
>> PersistableFeatureMap: org.eclipse.emf.ecore.util.DelegatingFeatureMap
>>
>> So it seems that the emf jar's you are using are different from the
>> ones assumed by Teneo.
>> Which Teneo version and which EMF version are you using?
>>
>> gr. Martin
>>
>> Vladimir Nikolov wrote:
>>> Hello Martin,
>>>
>>> I get an exception while trying to add an element in a featuremap. I
>>> was wondering if you can give me some hints what may be the problem?
>>> Or at least to point me where I should start looking for the reason
>>> for the problem?
>>>
>>> Here is the exception trace:
>>>
>>> Nested Exception is java.lang.NoSuchMethodError:
>>> org/eclipse/emf/teneo/mapping/elist/PersistableFeatureMap.in verseAdd(Lorg/eclipse/emf/ecore/util/FeatureMap$Entry;Lorg/e clipse/emf/common/notify/NotificationChain;)Lorg/eclipse/emf /common/notify/NotificationChain;
>>>
>>> at
>>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:216)
>>>
>>> at
>>> org.eclipse.emf.teneo.jpox.elist.FeatureMapWrapper.didAdd(Fe atureMapWrapper.java:558)
>>>
>>> at
>>> org.eclipse.emf.teneo.mapping.elist.PersistableFeatureMap.di dAdd(PersistableFeatureMap.java:1)
>>>
>>> at
>>> org.eclipse.emf.common.util.DelegatingEList.addUnique(Delega tingEList.java:498)
>>>
>>> at
>>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.doAddUnique(DelegatingNotifyingListImpl.java:315)
>>>
>>> at
>>> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:299)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.addUnique(De legatingFeatureMap.java:1381)
>>>
>>> at
>>> org.eclipse.emf.common.util.DelegatingEList.add(DelegatingEL ist.java:479)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.doAdd(Delega tingFeatureMap.java:521)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.DelegatingFeatureMap.add(Delegati ngFeatureMap.java:1135)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList.add(F eatureMapUtil.java:646)
>>>
>>>
>>>
>>> Here is the XMLSchema with the respective elements. I'm trying to add
>>> square object into an shape list.
>>>
>>> <xs:element name="shape" type="lib:Shape" abstract="true"/>
>>> <xs:complexType name="Shape" abstract="true">
>>> <!-- some elements and attributes -->
>>> </xs:complexType> <xs:element name="square" type="lib:Square"
>>> substitutionGroup="lib:shape" />
>>> <xs:complexType name="Square">
>>> <xs:complexContent>
>>> <xs:extension base="lib:Shape">
>>> <xs:sequence>
>>> <!-- some additional elements-->
>>> </xs:sequence>
>>> </xs:extension>
>>> </xs:complexContent>
>>> </xs:complexType>
>>>
>>>
>>> Thanks in advance!
>>> Vladimir
>>
>>
--
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.09384 seconds