Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: [EMF] Loading UML Magicdraw models
Re: [EMF] Loading UML Magicdraw models [message #626991] Tue, 07 October 2008 19:37
Ed Merks is currently offline Ed MerksFriend
Messages: 31460
Registered: July 2009
Senior Member
Waldemar,

It's best to ask on the UML2 newsgroup because I don't have a clue about
how profile magic works. I've added it to the "to" list of the reply,
so no need to repost.



Waldemar Neto wrote:
> Hi,
>
> I need load UML models exported from MagicDraw. To load these models i
> configure UML environment as said in the section Programmatic
> Migration in the article:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
>
>
> Well, but when a run my program these exception is throwed:
>
> rs.emf4atl.ASMEMFModel.loadASMEMFModel(ASMEMFModel.java:365)
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:222)
>
> at
> br.edu.gmf.udt.m2m.atl.ATLExecutor.createASMMetamodel(ATLExe cutor.java:235)
>
> at
> br.edu.gmf.udt.m2m.atl.ATLExecutor.initInputModels(ATLExecut or.java:288)
> at
> br.edu.gmf.udt.m2m.atl.ATLExecutor.makeTransformation(ATLExe cutor.java:256)
>
> at
> br.edu.gmf.udt.m2m.atl.ATLExecutor.executeTransformations(AT LExecutor.java:335)
>
> at br.edu.gmf.udt.AbsExecutor.generateTests(AbsExecutor.java:28 )
> at br.edu.gmf.udt.UDTExecutor.main(UDTExecutor.java:53)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http:///_zrN_0SUoEdmNXYQzyImvfA.profile.uml2' not found.
> ( file:///C:/Users/Netuh/Desktop/eclipse%20Place/workspace/UDT 2/IN,
> 18218, 99)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2566)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2398)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1276)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1445)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1010)
>
> 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:992)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:501)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:179)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(XMLDocumentFragmentSca nnerImpl.java:2747)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(XMLDocumentScannerImpl.java:648)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.next(XMLNSDocumentScannerImpl.java:140)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 510)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:807)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:737)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:107)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1205)
>
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(SAXParserImpl.java:522)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
> .. 10 more
>
>
>
> Any idea is very helpful.
>
> Thanks in advance,
>
> Waldemar Neto
>
> PS: sorry if my question was a crossing question, because i usaing the
> plugin ATL for load these models.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Announce] OMG's UML 2.2 is ready - UML2 3.0.0 API has been updated.
Next Topic:constraints
Goto Forum:
  


Current Time: Fri Sep 18 11:19:54 GMT 2020

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

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

Back to the top