Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] NoSuchMethodError exception when trying to add element to an EList
[Teneo] NoSuchMethodError exception when trying to add element to an EList [message #615993] Wed, 26 March 2008 18:30
Vladimir Nikolov is currently offline Vladimir NikolovFriend
Messages: 10
Registered: July 2009
Junior Member
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
Previous Topic:RE: Merge EMF Models
Next Topic:How to copy eResources such that xmi ids are maintained across resources
Goto Forum:
  


Current Time: Wed Jun 16 00:39:11 GMT 2021

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

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

Back to the top