Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Value of EnumerationImpl is not legal
Value of EnumerationImpl is not legal [message #874019] Sat, 19 May 2012 19:18
Eclipse UserFriend
Hello,

i've switched to the latest stable EMF/UML2. Most of my existing uml
models can be loaded now without problem except one. I get exception
specified below. Any ideas what i've did wrong (file with model itself
is attached)?

Thanks in advance

>
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value 'org.eclipse.uml2.uml.internal.impl.EnumerationImpl@825cf3 (name: CodeList.Wettbewerbsart, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false)' is not legal. (file:/model2/xhamsterzucht.uml, -1, -1)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:77)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:185)
> at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:240)
> at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1505)
> at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1284)
> at org.tzi.use.plugins.xmihandler.backend.XMIImporter.importFromXMI(XMIImporter.java:404)
> at org.tzi.use.plugins.xmihandler.XMIHandlerPlugin.importFromXMI(XMIHandlerPlugin.java:40)
> at org.tzi.use.plugins.xmihandler.gui.XMIHandlerView$1.doWork(XMIHandlerView.java:57)
> at org.tzi.use.plugins.xmihandler.gui.WaitDialog$2.construct(WaitDialog.java:62)
> at org.tzi.use.plugins.xmihandler.utils.SwingWorker$2.run(SwingWorker.java:112)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.uml2.uml.internal.impl.EnumerationImpl@825cf3 (name: CodeList.Wettbewerbsart, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false)' is not legal. (file:/model2/xhamsterzucht.uml, -1, -1)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2657)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1143)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1222)
> at org.eclipse.uml2.uml.internal.resource.UMLHandler.endDocument(UMLHandler.java:55)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:516)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
> ... 9 more
> Caused by: java.lang.UnsupportedOperationException
> at org.eclipse.emf.common.util.BasicEList$UnmodifiableEList.grow(BasicEList.java:1029)
> at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:435)
> at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1185)
> at org.eclipse.emf.ecoError: Value 'org.eclipse.uml2.uml.internal.impl.EnumerationImpl@825cf3 (name: CodeList.Wettbewerbsart, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false)' is not legal. (file:/model2/xhamsterzucht.uml, -1, -1)re.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2652)
> ... 21 more
Previous Topic:UML components: Add information about responsibility
Next Topic:UML2 Versions
Goto Forum:
  


Current Time: Tue Dec 23 02:20:24 GMT 2014

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

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