Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Launch ATL from Java
[ATL] Launch ATL from Java [message #81680] Tue, 20 May 2008 09:56 Go to next message
Eclipse UserFriend
Originally posted by: amivi.fagbegnon.gmail.com

Hi everybody,

I am trying to launch transformation from Java code . I am using uml 2.1.0
models.

Here the code to load my models:
URL umlmmurl = new
URL(" file:/D:/workspaceSFD2CA/TestTransfos/src/resources/UML.ecor e ");
I try to load with uri but I had these errors
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja va:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (HttpURLConnection.java:796)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Htt pURLConnection.java:748)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLC onnection.java:673)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(H ttpURLConnection.java:917)
....

URL xmlmmurl = new
URL(" file:/D:/workspaceSFD2CA/TestTransfos/src/resources/XML.ecor e ");

uml2MM_MDR = mdramh.loadModel("UML2", mdramh.getMof(),
umlmmurl.openStream());
xmlMDRmm = mdramh.loadModel("XML", mdramh.getMof(), xmlmmurl.openStream());

I get the errors below:

Initializing MDR...
org.netbeans.lib.jmi.util.DebugException: No tag specifying a namespace
uri is attached to MofPackage Model
at
org.netbeans.lib.jmi.xmi.XmiContext.findOutermostPackages(Xm iContext.java:272)
at org.netbeans.lib.jmi.xmi.XmiContext.setVersion(XmiContext.ja va:249)
at org.netbeans.lib.jmi.xmi.XmiElement$Document.<init>(XmiElement.java:94)
at
org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXRea der.java:169)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator. startElement(XMLDTDValidator.java:798)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerI mpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java :136)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java :98)
at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.loadASMMDRMo del(ASMMDRModel.java:348)
at
org.atl.engine.repositories.mdr4atl.AtlMDRModelHandler.loadM odel(AtlMDRModelHandler.java:93)
at SFD2CALauncher.initMDR(SFD2CALauncher.java:159)
at SFD2CALauncher.<init>(SFD2CALauncher.java:101)
at SFD2CALauncher.getATLTransformations(SFD2CALauncher.java:231 )
at SFD2CALauncher.main(SFD2CALauncher.java:435)
Error while reading UML2:
org.netbeans.lib.jmi.util.DebugException: No tag specifying a namespace
uri is attached to MofPackage Model
at
org.netbeans.lib.jmi.xmi.XmiContext.findOutermostPackages(Xm iContext.java:272)
at org.netbeans.lib.jmi.xmi.XmiContext.setVersion(XmiContext.ja va:249)
at org.netbeans.lib.jmi.xmi.XmiElement$Document.<init>(XmiElement.java:94)
at
org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXRea der.java:169)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator. startElement(XMLDTDValidator.java:798)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerI mpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java :136)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java :98)
at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.loadASMMDRMo del(ASMMDRModel.java:348)
at
org.atl.engine.repositories.mdr4atl.AtlMDRModelHandler.loadM odel(AtlMDRModelHandler.java:93)
at SFD2CALauncher.initMDR(SFD2CALauncher.java:160)
at SFD2CALauncher.<init>(SFD2CALauncher.java:101)
at SFD2CALauncher.getATLTransformations(SFD2CALauncher.java:231 )
at SFD2CALauncher.main(SFD2CALauncher.java:435)
Error while reading XML:
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'eGenericType'
not found. (UML2, 63, 98)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.java:1215)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.java:1185)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.java:87)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1146)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:466)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:65)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:449)
at
org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(SAXWr apper.java:73)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:140)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:169)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:341)
at
org.atl.eclipse.engine.AtlEMFModelHandler.loadModel(AtlEMFMo delHandler.java:110)
at SFD2CALauncher.initEMF(SFD2CALauncher.java:209)
at SFD2CALauncher.<init>(SFD2CALauncher.java:102)
at SFD2CALauncher.getATLTransformations(SFD2CALauncher.java:231 )
at SFD2CALauncher.main(SFD2CALauncher.java:435)
no type named 'Root' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.startElement(XMLInj ector.java:141)
at
org.atl.engine.injectors.xml.ProtectedHandler.startElement(P rotectedHandler.java:38)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator. startElement(XMLDTDValidator.java:798)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerI mpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Text' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.characters(XMLInjec tor.java:117)
at
org.atl.engine.injectors.xml.ProtectedHandler.characters(Pro tectedHandler.java:30)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .characters(AbstractSAXParser.java:570)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1 062)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1649)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Root' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.startElement(XMLInj ector.java:141)
at
org.atl.engine.injectors.xml.ProtectedHandler.startElement(P rotectedHandler.java:38)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:220)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.injectors.xml.XMLInjector.endElement(XMLInjec tor.java:170)
at
org.atl.engine.injectors.xml.ProtectedHandler.endElement(Pro tectedHandler.java:46)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:221)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Text' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.characters(XMLInjec tor.java:117)
at
org.atl.engine.injectors.xml.ProtectedHandler.characters(Pro tectedHandler.java:30)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .characters(AbstractSAXParser.java:570)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1 062)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1649)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)no type
named 'Root' in metamodel 'XML'

at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.startElement(XMLInj ector.java:141)
at
org.atl.engine.injectors.xml.ProtectedHandler.startElement(P rotectedHandler.java:38)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:220)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.injectors.xml.XMLInjector.endElement(XMLInjec tor.java:170)
at
org.atl.engine.injectors.xml.ProtectedHandler.endElement(Pro tectedHandler.java:46)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:221)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Text' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.characters(XMLInjec tor.java:117)
at
org.atl.engine.injectors.xml.ProtectedHandler.characters(Pro tectedHandler.java:30)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .characters(AbstractSAXParser.java:570)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1 062)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1649)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Root' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.startElement(XMLInj ector.java:141)
at
org.atl.engine.injectors.xml.ProtectedHandler.startElement(P rotectedHandler.java:38)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:220)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.injectors.xml.XMLInjector.endElement(XMLInjec tor.java:170)
at
org.atl.engine.injectors.xml.ProtectedHandler.endElement(Pro tectedHandler.java:46)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:221)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Text' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.characters(XMLInjec tor.java:117)
at
org.atl.engine.injectors.xml.ProtectedHandler.characters(Pro tectedHandler.java:30)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .characters(AbstractSAXParser.java:570)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1 062)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1649)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Root' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.startElement(XMLInj ector.java:141)
at
org.atl.engine.injectors.xml.ProtectedHandler.startElement(P rotectedHandler.java:38)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:220)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.injectors.xml.XMLInjector.endElement(XMLInjec tor.java:170)
at
org.atl.engine.injectors.xml.ProtectedHandler.endElement(Pro tectedHandler.java:46)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:221)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
no type named 'Text' in metamodel 'XML'
java.lang.NullPointerException
at
org.atl.engine.repositories.mdr4atl.ASMMDRModel.newModelElem ent(ASMMDRModel.java:177)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:74)
at org.atl.engine.vm.nativelib.ASMModel.newModelElement(ASMMode l.java:62)
at
org.atl.engine.injectors.xml.XMLInjector.characters(XMLInjec tor.java:117)
at
org.atl.engine.injectors.xml.ProtectedHandler.characters(Pro tectedHandler.java:30)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .characters(AbstractSAXParser.java:570)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1 062)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1649)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)
java.lang.NullPointerException
at
org.atl.engine.injectors.xml.XMLInjector.endElement(XMLInjec tor.java:170)
at
org.atl.engine.injectors.xml.ProtectedHandler.endElement(Pro tectedHandler.java:46)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.jav a:1241)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1685)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at
org.atl.engine.injectors.xml.XMLInjector.performImportation( XMLInjector.java:91)
at org.atl.engine.injectors.xml.XMLInjector.inject(XMLInjector. java:74)
at SFD2CALauncher.injectXMLModelFromFile(SFD2CALauncher.java:37 4)
OK
at SFD2CALauncher.transformOnetoOther(SFD2CALauncher.java:423)
at SFD2CALauncher.main(SFD2CALauncher.java:438)

Thanks
Re: [ATL] Launch ATL from Java [message #81770 is a reply to message #81680] Tue, 20 May 2008 18:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: milan.milanovic.org

Hi Amivi,

I supose that you are using ATLTransformations class ?

Amivi FAGBEGNON wrote:

> Hi everybody,

> I am trying to launch transformation from Java code . I am using uml 2.1.0
> models.

> Here the code to load my models:
> URL umlmmurl = new
> URL(" file:/D:/workspaceSFD2CA/TestTransfos/src/resources/UML.ecor e ");

Please try to use relative path. For example, if you have
ATLTransformations class and CLASSPATH set to c:\java and you have
metamodels folder in it, you can define URL like this:

URL umlmmurl =
ATLTransformations.class.getResource("metamodels/UML.ecore");

> I try to load with uri but I had these errors
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja va:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.Socket.connect(Socket.java:516)
> at java.net.Socket.connect(Socket.java:466)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
> at sun.net.www.http.HttpClient.New(HttpClient.java:287)
> at sun.net.www.http.HttpClient.New(HttpClient.java:299)
> at
>
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (HttpURLConnection.java:796)
> at
>
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Htt pURLConnection.java:748)
> at
>
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLC onnection.java:673)
> at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(H ttpURLConnection.java:917)
> ....

> URL xmlmmurl = new
> URL(" file:/D:/workspaceSFD2CA/TestTransfos/src/resources/XML.ecor e ");

> uml2MM_MDR = mdramh.loadModel("UML2", mdramh.getMof(),
> umlmmurl.openStream());
> xmlMDRmm = mdramh.loadModel("XML", mdramh.getMof(), xmlmmurl.openStream());

No, mdramh is MDR AtlModelHandler, and when you work with .ecore files
then you need EMF model handler (emfamh). Please, learn little bit about
ATL, MDE and model handlers.

> I get the errors below:

> Initializing MDR...
> org.netbeans.lib.jmi.util.DebugException: No tag specifying a namespace
> uri is attached to MofPackage Model
> at

--
Regards, Milan Milanovic
Re: [ATL] Launch ATL from Java [message #81817 is a reply to message #81770] Wed, 21 May 2008 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amivi.fagbegnon.gmail.com

Thanks for your help.

Concerning the using of relative path... I tried but it not work. I get an
java.lang.NullPointerException error. I have to set the class and
classpath to c:\java before it work?
Indeed I try to adapt the ATLTransformations class to my needs.

In the step 3 of Installation instructions, you say :
3. Use it in your application:

import atl.ATLTransformations;

and as it show in docs.

Where are these docs?

Can I find projects in use case which use the bundle?

Amivi
Re: [ATL] Launch ATL from Java [message #81885 is a reply to message #81817] Wed, 21 May 2008 09:54 Go to previous message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi,

"Amivi FAGBEGNON" <amivi.fagbegnon@gmail.com> wrote in message
news:c5c8e6319e423823279fcaf581c31bf7$1@www.eclipse.org...
> Thanks for your help.
>
> Concerning the using of relative path... I tried but it not work. I get an
> java.lang.NullPointerException error. I have to set the class and
> classpath to c:\java before it work?

Yes, if you have there your class, as it is written in "Installations
steps".

> Indeed I try to adapt the ATLTransformations class to my needs.
>
> In the step 3 of Installation instructions, you say :
> 3. Use it in your application:
>
> import atl.ATLTransformations;
>
> and as it show in docs.
>
> Where are these docs?

You have included "docs" folder in .zip bundle, it is actually a javadoc.

> Can I find projects in use case which use the bundle?

I'm sending you an running example of ATLTransformations class in attach.
Note that I'm using MDR, but it can be switched to EMF.

--
Regards, Milan

> Amivi
>
>


Previous Topic:Load model from resource
Next Topic:[QVT] The type 'collection:OrderedSet(EAnnotation)' does not conform the type 'OrderedSet(EAnnotatio
Goto Forum:
  


Current Time: Sat Aug 17 12:52:24 GMT 2019

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

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

Back to the top