Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » WrappedException: feature eGenericType not found while loading model
WrappedException: feature eGenericType not found while loading model [message #471955] Wed, 28 March 2007 15:05 Go to next message
chris is currently offline chrisFriend
Messages: 72
Registered: July 2009
Member
Hi,

I'm kind of lost with the above problem: When I try to create a
ResourceSet to be used for loading a UML activity, I get that exception.
I found somewhere that this is related to using UML 2.1 with EMF before
2.3, but this is not the case for me. Some more info:

I have a Java project within Eclipse 3.3M5, and I added a libs directory
containing the appropriate jar files (i.e., org.eclipse.uml2.uml_2.1.0,
org.eclipse.uml2.common_1.3.0, org.eclipse.emf.ecore_2.3.0,
org.eclipse.emf.common_2.3.0, and org.eclipse.emf.ecore.xmi_2.3.0). I
start the application using Run as.../Java application. My source to
create the ResourceSet looks as follows:

private static ResourceSet createResourceSet() {
ResourceSet rs = new ResourceSetImpl();
rs.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
Map extensionToFactoryMap = rs.getResourceFactoryRegistry()
.getExtensionToFactoryMap();
extensionToFactoryMap.put(UMLResource.FILE_EXTENSION,
UMLResource.Factory.INSTANCE);
extensionToFactoryMap.put("ecore", new EcoreResourceFactoryImpl());
extensionToFactoryMap.put(Resource.Factory.Registry.DEFAULT_ EXTENSION,
new XMIResourceFactoryImpl());
return rs;
}


The exception occurs when executing the put method of the 2nd line. here
it is:


Exception in thread "main" java.lang.ExceptionInInitializerError
at
de.upb.dmm.soundnesschecker.util.UML2Utils.createResourceSet (UML2Utils.java:72)
at de.upb.dmm.soundnesschecker.util.UML2Utils.<clinit>(UML2Utils.java:26)
at
de.upb.dmm.soundnesschecker.SoundnessChecker.doTransformatio ns(SoundnessChecker.java:54)
at
de.upb.dmm.soundnesschecker.SoundnessChecker.startChecker(So undnessChecker.java:95)
at
de.upb.dmm.soundnesschecker.ServiceConsistencyChecker.main(S erviceConsistencyChecker.java:64)
Caused by: org.eclipse.emf.common.util.WrappedException:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'eGenericType' not found.
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugins/org.eclipse.uml2.uml_2.1.0.v200701040816. jar!/org/eclipse/uml2/uml/internal/impl/uml.ecore,
24, 98)
at
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl.java:10909)
at
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.init(UMLPa ckageImpl.java:1965)
at org.eclipse.uml2.uml.UMLPackage.<clinit>(UMLPackage.java:72)
... 5 more
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
Feature 'eGenericType' not found.
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugins/org.eclipse.uml2.uml_2.1.0.v200701040816. jar!/org/eclipse/uml2/uml/internal/impl/uml.ecore,
24, 98)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:80)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:188)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl.java:10907)
... 7 more
Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'eGenericType' not found.
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugins/org.eclipse.uml2.uml_2.1.0.v200701040816. jar!/org/eclipse/uml2/uml/internal/impl/uml.ecore,
24, 98)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.java:1830)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.java:1794)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.java:149)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1738)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme ntContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
... 11 more

Thanks in advance,
Chris
Re: WrappedException: feature eGenericType not found while loading model [message #471969 is a reply to message #471955] Wed, 28 March 2007 16:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Chris,

It looks like you have Eclipse M5 but UML M4 ( from Jan4 ). Please try to
take all the proper dependencies required by UML and then retry ( try with
the M5 of UML or one of the more recent integration builds ... the download
page will list all the dependencies ).

If you still have the issue I will try to reproduce it on my machine but it
sounds like you are possibly mixing and matching plugins.

Regards,

- James.

"chris" <chris_42@gmx.net> wrote in message
news:eue08f$6l9$1@utils.eclipse.org...
> Hi,
>
> I'm kind of lost with the above problem: When I try to create a
> ResourceSet to be used for loading a UML activity, I get that exception.
> I found somewhere that this is related to using UML 2.1 with EMF before
> 2.3, but this is not the case for me. Some more info:
>
> I have a Java project within Eclipse 3.3M5, and I added a libs directory
> containing the appropriate jar files (i.e., org.eclipse.uml2.uml_2.1.0,
> org.eclipse.uml2.common_1.3.0, org.eclipse.emf.ecore_2.3.0,
> org.eclipse.emf.common_2.3.0, and org.eclipse.emf.ecore.xmi_2.3.0). I
> start the application using Run as.../Java application. My source to
> create the ResourceSet looks as follows:
>
> private static ResourceSet createResourceSet() {
> ResourceSet rs = new ResourceSetImpl();
> rs.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
> Map extensionToFactoryMap = rs.getResourceFactoryRegistry()
> .getExtensionToFactoryMap();
> extensionToFactoryMap.put(UMLResource.FILE_EXTENSION,
> UMLResource.Factory.INSTANCE);
> extensionToFactoryMap.put("ecore", new EcoreResourceFactoryImpl());
> extensionToFactoryMap.put(Resource.Factory.Registry.DEFAULT_ EXTENSION,
> new XMIResourceFactoryImpl());
> return rs;
> }
>
>
> The exception occurs when executing the put method of the 2nd line. here
> it is:
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
>
de.upb.dmm.soundnesschecker.util.UML2Utils.createResourceSet (UML2Utils.java:
72)
> at de.upb.dmm.soundnesschecker.util.UML2Utils.<clinit>(UML2Utils.java:26)
> at
>
de.upb.dmm.soundnesschecker.SoundnessChecker.doTransformatio ns(SoundnessChec
ker.java:54)
> at
>
de.upb.dmm.soundnesschecker.SoundnessChecker.startChecker(So undnessChecker.j
ava:95)
> at
>
de.upb.dmm.soundnesschecker.ServiceConsistencyChecker.main(S erviceConsistenc
yChecker.java:64)
> Caused by: org.eclipse.emf.common.util.WrappedException:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
> 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl
..java:10909)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.init(UMLPa ckageImpl.java:1
965)
> at org.eclipse.uml2.uml.UMLPackage.<clinit>(UMLPackage.java:72)
> ... 5 more
> Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
> Feature 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:80)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:188)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:1
80)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094
)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl
..java:10907)
> ... 7 more
> Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.ja
va:1830)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.ja
va:1794)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.ja
va:149)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1738
)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957
)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown
Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(Unkno
wn
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme ntContentDispatc
her.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
> ... 11 more
>
> Thanks in advance,
> Chris
Re: WrappedException: feature eGenericType not found while loading model [message #604089 is a reply to message #471955] Wed, 28 March 2007 16:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Chris,

It looks like you have Eclipse M5 but UML M4 ( from Jan4 ). Please try to
take all the proper dependencies required by UML and then retry ( try with
the M5 of UML or one of the more recent integration builds ... the download
page will list all the dependencies ).

If you still have the issue I will try to reproduce it on my machine but it
sounds like you are possibly mixing and matching plugins.

Regards,

- James.

"chris" <chris_42@gmx.net> wrote in message
news:eue08f$6l9$1@utils.eclipse.org...
> Hi,
>
> I'm kind of lost with the above problem: When I try to create a
> ResourceSet to be used for loading a UML activity, I get that exception.
> I found somewhere that this is related to using UML 2.1 with EMF before
> 2.3, but this is not the case for me. Some more info:
>
> I have a Java project within Eclipse 3.3M5, and I added a libs directory
> containing the appropriate jar files (i.e., org.eclipse.uml2.uml_2.1.0,
> org.eclipse.uml2.common_1.3.0, org.eclipse.emf.ecore_2.3.0,
> org.eclipse.emf.common_2.3.0, and org.eclipse.emf.ecore.xmi_2.3.0). I
> start the application using Run as.../Java application. My source to
> create the ResourceSet looks as follows:
>
> private static ResourceSet createResourceSet() {
> ResourceSet rs = new ResourceSetImpl();
> rs.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
> Map extensionToFactoryMap = rs.getResourceFactoryRegistry()
> .getExtensionToFactoryMap();
> extensionToFactoryMap.put(UMLResource.FILE_EXTENSION,
> UMLResource.Factory.INSTANCE);
> extensionToFactoryMap.put("ecore", new EcoreResourceFactoryImpl());
> extensionToFactoryMap.put(Resource.Factory.Registry.DEFAULT_ EXTENSION,
> new XMIResourceFactoryImpl());
> return rs;
> }
>
>
> The exception occurs when executing the put method of the 2nd line. here
> it is:
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
>
de.upb.dmm.soundnesschecker.util.UML2Utils.createResourceSet (UML2Utils.java:
72)
> at de.upb.dmm.soundnesschecker.util.UML2Utils.<clinit>(UML2Utils.java:26)
> at
>
de.upb.dmm.soundnesschecker.SoundnessChecker.doTransformatio ns(SoundnessChec
ker.java:54)
> at
>
de.upb.dmm.soundnesschecker.SoundnessChecker.startChecker(So undnessChecker.j
ava:95)
> at
>
de.upb.dmm.soundnesschecker.ServiceConsistencyChecker.main(S erviceConsistenc
yChecker.java:64)
> Caused by: org.eclipse.emf.common.util.WrappedException:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
> 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl
..java:10909)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.init(UMLPa ckageImpl.java:1
965)
> at org.eclipse.uml2.uml.UMLPackage.<clinit>(UMLPackage.java:72)
> ... 5 more
> Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
> Feature 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:80)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:188)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:1
80)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094
)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
>
org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.loadPackag e(UMLPackageImpl
..java:10907)
> ... 7 more
> Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'eGenericType' not found.
>
(jar:file:/C:/Dokumente%20und%20Einstellungen/chris/Desktop/ M5/eclipse/plugi
ns/org.eclipse.uml2.uml_2.1.0.v200701040816.jar!/org/eclipse /uml2/uml/intern
al/impl/uml.ecore,
> 24, 98)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.ja
va:1830)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.ja
va:1794)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.ja
va:149)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1738
)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957
)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
> at
>
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown
Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(Unkno
wn
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme ntContentDispatc
her.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
> ... 11 more
>
> Thanks in advance,
> Chris
Previous Topic:Creating a Usage programmatically
Next Topic:Creating a Usage programmatically
Goto Forum:
  


Current Time: Sat Apr 04 13:16:13 GMT 2020

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

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

Back to the top