Resource.load error: ">" is not legal [message #1777500] |
Wed, 29 November 2017 12:41  |
Eclipse User |
|
|
|
So I have the MoDisco Java metamodel and some test model file. When I load this, I get the following stack trace:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value '>' is not legal. (file:///D:/GDrive/PhD/Experiments/org.eclipse.ocl.examples.project.oclinecoretutorial/src/javaMM/launch/test.xmi, 1106, 119)
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:261)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
at org.eclipse.epsilon.evl.engine.test.acceptance.equivalence.StandaloneOCL.run(StandaloneOCL.java:187)
at javaMM.launch.JavaMMLauncher.main(JavaMMLauncher.java:25)
Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value '>' is not legal. (file:///D:/GDrive/PhD/Experiments/org.eclipse.ocl.examples.project.oclinecoretutorial/src/javaMM/launch/test.xmi, 1106, 119)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2697)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XMLHandler.java:2751)
at org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAttribs(SAXXMIHandler.java:79)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2229)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:2132)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:2067)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(XMIHandler.java:151)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1876)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1030)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:82)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1008)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:719)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:190)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
... 5 more
Caused by: java.lang.IllegalArgumentException: The value '>' is not a valid enumerator of 'InfixExpressionKind'
at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:307)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createFromString(XMLHelperImpl.java:1615)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1156)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2692)
... 29 more
But the thing is, I've loaded this file before and it works in another context, but not this one. I'm trying to figure out the cause of the error and I'm certain it's nothing to do with the XML file (I looked at the text and it's simply a character inside a string, not an invalid XML file). So what could be causing this behaviour?
Thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Resource.load error: ">" is not legal [message #1777896 is a reply to message #1777877] |
Tue, 05 December 2017 12:24  |
Eclipse User |
|
|
|
Hi Ed,
Thanks for the clarification. It seems the zip file you linked earlier wasn't the right one - the new one has done the trick! Once again thank you very much for your persistence and help regarding this issue.
Best Wishes,
Sina Madani
|
|
|
Powered by
FUDForum. Page generated in 0.26835 seconds