Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » eol standalone uml example
eol standalone uml example [message #1063877] Fri, 14 June 2013 12:29 Go to next message
Patricia Fernández is currently offline Patricia Fernández
Messages: 41
Registered: October 2012
Member
Hello,


I'm looking at the examples provided in the repository. Specifically I'm checking org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.java but when I try to run it, the following exception appears. Any tips?

http://www.eclipse.org/uml2/4.0.0/UML
Exception in thread "main" Internal error: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.eclipse.org/uml2/3.0.0/UML' not found. [file:/C:%5CUsers%5CPatricia%5CDocuments%5CUNIVERSIDAD%5CPFC%5CEclipse_1%5Corg.eclipse.epsilon.examples.standalone%5Csrc%5Corg%5Ceclipse%5Cepsilon%5Cexamples%5Cstandalone%5Cmodels%5Cexample.uml, 2, 214]
	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.eclipse.epsilon.emc.emf.EmfModel.loadModelFromUri[EmfModel.java:254]
	at org.eclipse.epsilon.emc.emf.EmfModel.loadModel[EmfModel.java:167]
	at org.eclipse.epsilon.eol.models.CachedModel.load[CachedModel.java:147]
	at org.eclipse.epsilon.emc.emf.EmfModel.load[EmfModel.java:151]
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.createEmfModelByURI[EpsilonStandaloneExample.java:102]
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.getModels[EolStandaloneUmlExample.java:29]
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.execute[EpsilonStandaloneExample.java:55]
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.main[EolStandaloneUmlExample.java:16]
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.eclipse.org/uml2/3.0.0/UML' not found. [file:/C:%5CUsers%5CPatricia%5CDocuments%5CUNIVERSIDAD%5CPFC%5CEclipse_1%5Corg.eclipse.epsilon.examples.standalone%5Csrc%5Corg%5Ceclipse%5Cepsilon%5Cexamples%5Cstandalone%5Cmodels%5Cexample.uml, 2, 214]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI[XMLHandler.java:2586]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix[XMLHandler.java:2417]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType[XMLHandler.java:1294]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject[XMLHandler.java:1463]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement[XMLHandler.java:1014]
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement[XMIHandler.java:77]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement[XMLHandler.java:996]
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement[XMLHandler.java:707]
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement[XMIHandler.java:163]
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement[AbstractSAXParser.java:501]
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement[XMLDTDValidator.java:767]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement[XMLDocumentFragmentScannerImpl.java:1363]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook[XMLDocumentScannerImpl.java:1318]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next[XMLDocumentFragmentScannerImpl.java:3103]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next[XMLDocumentScannerImpl.java:922]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next[XMLDocumentScannerImpl.java:648]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument[XMLDocumentFragmentScannerImpl.java:511]
	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]
	... 11 more

	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.eclipse.epsilon.emc.emf.EmfModel.loadModelFromUri(EmfModel.java:254)
	at org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java:167)
	at org.eclipse.epsilon.eol.models.CachedModel.load(CachedModel.java:147)
	at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:151)
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.createEmfModelByURI(EpsilonStandaloneExample.java:102)
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.getModels(EolStandaloneUmlExample.java:29)
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.execute(EpsilonStandaloneExample.java:55)
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.main(EolStandaloneUmlExample.java:16)
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.eclipse.org/uml2/3.0.0/UML' not found. (file:/C:%5CUsers%5CPatricia%5CDocuments%5CUNIVERSIDAD%5CPFC%5CEclipse_1%5Corg.eclipse.epsilon.examples.standalone%5Csrc%5Corg%5Ceclipse%5Cepsilon%5Cexamples%5Cstandalone%5Cmodels%5Cexample.uml, 2, 214)
	... 13 more
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.eclipse.org/uml2/3.0.0/UML' not found. (file:/C:%5CUsers%5CPatricia%5CDocuments%5CUNIVERSIDAD%5CPFC%5CEclipse_1%5Corg.eclipse.epsilon.examples.standalone%5Csrc%5Corg%5Ceclipse%5Cepsilon%5Cexamples%5Cstandalone%5Cmodels%5Cexample.uml, 2, 214)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2586)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2417)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1294)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1463)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1014)
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:77)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:996)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:707)
	at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:163)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1318)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
	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)
	... 11 more

Re: eol standalone uml example [message #1063893 is a reply to message #1063877] Fri, 14 June 2013 15:46 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 840
Registered: July 2009
Senior Member
Hi,

It would appear that your model conforms to the 3.0 version of the UML metamodel while in your Eclipse you have version 4.0 installed.

Cheers,
Dimitris
Previous Topic:Create a product (with RCP) after Eugenia
Next Topic:Remove tests plugin
Goto Forum:
  


Current Time: Sat Aug 30 10:30:35 EDT 2014

Powered by FUDForum. Page generated in 0.05323 seconds