Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » the error of runing ATL transformations in Java
the error of runing ATL transformations in Java [message #1050483] Sat, 27 April 2013 08:20 Go to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
injector.inject(inputMetamodel,"http://www.eclipse.org/uml2/4.0.0/UML");

Error loading http://www.eclipse.org/uml2/4.0.0/UML
How can I do?
Re: the error of runing ATL transformations in Java [message #1051794 is a reply to message #1050483] Mon, 29 April 2013 08:25 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

Have you tried to do something like
injector.inject(inputMetamodel,"uri:http://www.eclipse.org/uml2/4.0.0/UML");
?

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: the error of runing ATL transformations in Java [message #1051869 is a reply to message #1051794] Mon, 29 April 2013 09:58 Go to previous messageGo to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
hello,
I have tried to do something like
injector.inject(inputMetamodel,"uri:http://www.eclipse.org/uml2/4.0.0/UML");
,but the error is :
org.eclipse.m2m.atl.core.ATLCoreException: Error loading uri:http://www.eclipse.org/uml2/4.0.0/UML: java.net.MalformedURLException: unknown protocol: uri
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector.java:70)
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector.java:84)
	at TransJava.main(TransJava.java:41)
Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.net.MalformedURLException: unknown protocol: uri
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
	at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector.java:65)
	... 2 more
Caused by: java.net.MalformedURLException: unknown protocol: uri
	at java.net.URL.<init>(URL.java:592)
	at java.net.URL.<init>(URL.java:482)
	at java.net.URL.<init>(URL.java:431)
	at org.eclipse.emf.ecore.resource.impl.URIHandlerImpl.createInputStream(URIHandlerImpl.java:176)
	at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:350)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1262)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
	... 4 more

my program (part):
ILauncher transformationLauncher = new EMFVMLauncher();
			ModelFactory modelFactory = new EMFModelFactory();
			IInjector injector = new EMFInjector();
			IExtractor extractor = new EMFExtractor();
			// load metamodels
			IReferenceModel inputMetamodel = modelFactory.newReferenceModel();
			injector.inject(inputMetamodel,
					"uri:http://www.eclipse.org/uml2/4.0.0/UML");

Re: the error of runing ATL transformations in Java [message #1051918 is a reply to message #1051869] Mon, 29 April 2013 11:22 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
You should take a look to older posts onto this forum, or to ATL entries into the Eclipse Bugzilla.
Some users may have already faced a similar problem.
Otherwise, you could raise a bug into the Eclipse Bugzilla ("MMT.ATL" product).

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: the error of runing ATL transformations in Java [message #1052883 is a reply to message #1051918] Wed, 01 May 2013 02:19 Go to previous messageGo to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
hello,
when I run my transformation file(.atl)successfully in ATL perspective ,but running my transformation in java ocure errors.I use the input model(.uml) generated by papyrus and I also add MARTE stereotype to uml model.
please give me some suggestion.
Thank you in advance .
Re: the error of runing ATL transformations in Java [message #1053049 is a reply to message #1052883] Thu, 02 May 2013 08:09 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

If you are using an UML profile, you should check that you have correctly loaded it as an input model (of your transformation) which conforms to the UML metamodel.

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: the error of runing ATL transformations in Java [message #1053058 is a reply to message #1053049] Thu, 02 May 2013 09:25 Go to previous messageGo to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
hello,
I have check that have correctly loaded "MARTE.profile.uml" as an input model (of your transformation) which conforms to the UML metamodel.
However,the error is :Package with uri 'http://www.eclipse.org/papyrus/GQAM/1' not found.
The following is my uml model:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:GQAM="http://www.eclipse.org/papyrus/GQAM/1" xmlns:PAM="http://www.eclipse.org/papyrus/PAM/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/GQAM/1 http://www.eclipse.org/papyrus/MARTE/1#//GQAM http://www.eclipse.org/papyrus/PAM/1 http://www.eclipse.org/papyrus/MARTE/1#//PAM">
  <uml:Model xmi:id="_MPs1EKyKEeKPKesk8xj-aQ" name="model">
    <packagedElement xmi:type="uml:Activity" xmi:id="_MUKeUKyKEeKPKesk8xj-aQ" name="Activity1"/>
    <packagedElement xmi:type="uml:Actor" xmi:id="_pB9fgKyKEeKPKesk8xj-aQ" name="Actor"/>
    <packagedElement xmi:type="uml:UseCase" xmi:id="_qNrrwKyKEeKPKesk8xj-aQ" name="UseCase" classifierBehavior="_Wfi3wKyLEeKPKesk8xj-aQ">
      <ownedBehavior xmi:type="uml:Activity" xmi:id="_Wfi3wKyLEeKPKesk8xj-aQ" name="Activity1" node="_YLZ8oKyLEeKPKesk8xj-aQ _c8_cUKyLEeKPKesk8xj-aQ _gaNxIKyLEeKPKesk8xj-aQ _k2P3kKyLEeKPKesk8xj-aQ _pzbjQKyLEeKPKesk8xj-aQ _qShTAKyLEeKPKesk8xj-aQ _q5WpgKyLEeKPKesk8xj-aQ _vO9-4KyLEeKPKesk8xj-aQ _x9Ej4KyLEeKPKesk8xj-aQ _1U-64KyLEeKPKesk8xj-aQ">
        <edge xmi:type="uml:ControlFlow" xmi:id="_e9rhsKyLEeKPKesk8xj-aQ" name="ControlFlow1" source="_YLZ8oKyLEeKPKesk8xj-aQ" target="_c8_cUKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_e9rhsayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_e9rhsqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_i9JA4KyLEeKPKesk8xj-aQ" name="ControlFlow2" source="_c8_cUKyLEeKPKesk8xj-aQ" target="_gaNxIKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_i9JA4ayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_i9JA4qyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_l6Y1IKyLEeKPKesk8xj-aQ" name="ControlFlow3" source="_gaNxIKyLEeKPKesk8xj-aQ" target="_k2P3kKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_l6Y1IayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_l6Y1IqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_sGRIkKyLEeKPKesk8xj-aQ" name="ControlFlow4" source="_gaNxIKyLEeKPKesk8xj-aQ" target="_q5WpgKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_sGRIkayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_sGRIkqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_s01ewKyLEeKPKesk8xj-aQ" name="ControlFlow5" source="_k2P3kKyLEeKPKesk8xj-aQ" target="_pzbjQKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_s01ewayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_s01ewqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_tepQwKyLEeKPKesk8xj-aQ" name="ControlFlow6" source="_k2P3kKyLEeKPKesk8xj-aQ" target="_qShTAKyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_tepQwayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_tepQwqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_v6mV0KyLEeKPKesk8xj-aQ" name="ControlFlow7" source="_pzbjQKyLEeKPKesk8xj-aQ" target="_vO9-4KyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_v6mV0ayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_v6mV0qyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_xEsKYKyLEeKPKesk8xj-aQ" name="ControlFlow8" source="_qShTAKyLEeKPKesk8xj-aQ" target="_vO9-4KyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_xEsKYayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_xEsKYqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_zP758KyLEeKPKesk8xj-aQ" name="ControlFlow9" source="_vO9-4KyLEeKPKesk8xj-aQ" target="_x9Ej4KyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_zQFq8KyLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_zQFq8ayLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_0J2kgKyLEeKPKesk8xj-aQ" name="ControlFlow10" source="_q5WpgKyLEeKPKesk8xj-aQ" target="_x9Ej4KyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_0J2kgayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_0J2kgqyLEeKPKesk8xj-aQ"/>
        </edge>
        <edge xmi:type="uml:ControlFlow" xmi:id="_1-cHkKyLEeKPKesk8xj-aQ" name="ControlFlow11" source="_x9Ej4KyLEeKPKesk8xj-aQ" target="_1U-64KyLEeKPKesk8xj-aQ">
          <guard xmi:type="uml:LiteralBoolean" xmi:id="_1-cHkayLEeKPKesk8xj-aQ" value="true"/>
          <weight xmi:type="uml:LiteralInteger" xmi:id="_1-cHkqyLEeKPKesk8xj-aQ"/>
        </edge>
        <node xmi:type="uml:InitialNode" xmi:id="_YLZ8oKyLEeKPKesk8xj-aQ" name="InitialNode1" outgoing="_e9rhsKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:OpaqueAction" xmi:id="_c8_cUKyLEeKPKesk8xj-aQ" name="Acquiring Request" outgoing="_i9JA4KyLEeKPKesk8xj-aQ" incoming="_e9rhsKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:ForkNode" xmi:id="_gaNxIKyLEeKPKesk8xj-aQ" name="ForkNode1" outgoing="_l6Y1IKyLEeKPKesk8xj-aQ _sGRIkKyLEeKPKesk8xj-aQ" incoming="_i9JA4KyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:DecisionNode" xmi:id="_k2P3kKyLEeKPKesk8xj-aQ" name="DecisionNode1" outgoing="_s01ewKyLEeKPKesk8xj-aQ _tepQwKyLEeKPKesk8xj-aQ" incoming="_l6Y1IKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:OpaqueAction" xmi:id="_pzbjQKyLEeKPKesk8xj-aQ" name="Sending Content" outgoing="_v6mV0KyLEeKPKesk8xj-aQ" incoming="_s01ewKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:OpaqueAction" xmi:id="_qShTAKyLEeKPKesk8xj-aQ" name="Bad Request Page" outgoing="_xEsKYKyLEeKPKesk8xj-aQ" incoming="_tepQwKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:OpaqueAction" xmi:id="_q5WpgKyLEeKPKesk8xj-aQ" name="Sending Banner" outgoing="_0J2kgKyLEeKPKesk8xj-aQ" incoming="_sGRIkKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:MergeNode" xmi:id="_vO9-4KyLEeKPKesk8xj-aQ" name="MergeNode1" outgoing="_zP758KyLEeKPKesk8xj-aQ" incoming="_v6mV0KyLEeKPKesk8xj-aQ _xEsKYKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:JoinNode" xmi:id="_x9Ej4KyLEeKPKesk8xj-aQ" name="JoinNode1" outgoing="_1-cHkKyLEeKPKesk8xj-aQ" incoming="_zP758KyLEeKPKesk8xj-aQ _0J2kgKyLEeKPKesk8xj-aQ"/>
        <node xmi:type="uml:ActivityFinalNode" xmi:id="_1U-64KyLEeKPKesk8xj-aQ" name="ActivityFinalNode1" incoming="_1-cHkKyLEeKPKesk8xj-aQ"/>
      </ownedBehavior>
    </packagedElement>
    <packagedElement xmi:type="uml:Association" xmi:id="_ryjX0KyKEeKPKesk8xj-aQ" name="A_actor_usecase" memberEnd="_ryjX0ayKEeKPKesk8xj-aQ _ryjX1KyKEeKPKesk8xj-aQ">
      <ownedEnd xmi:id="_ryjX0ayKEeKPKesk8xj-aQ" name="actor" type="_pB9fgKyKEeKPKesk8xj-aQ" association="_ryjX0KyKEeKPKesk8xj-aQ">
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_ryjX0qyKEeKPKesk8xj-aQ" value="1"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ryjX06yKEeKPKesk8xj-aQ" value="1"/>
      </ownedEnd>
      <ownedEnd xmi:id="_ryjX1KyKEeKPKesk8xj-aQ" name="usecase" type="_qNrrwKyKEeKPKesk8xj-aQ" association="_ryjX0KyKEeKPKesk8xj-aQ">
        <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_ryjX1ayKEeKPKesk8xj-aQ" value="1"/>
        <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ryjX1qyKEeKPKesk8xj-aQ" value="1"/>
      </ownedEnd>
    </packagedElement>
    <packagedElement xmi:type="uml:Node" xmi:id="_TprocKyMEeKPKesk8xj-aQ" name="Server"/>
    <profileApplication xmi:id="_0bSvQKyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0bcgQKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#/"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_zaC5cAPHEdyeNfbOYuD9pg"/>
    </profileApplication>
    <profileApplication xmi:id="_0bcgQayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0bmRQKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//NFPs"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_U_GAoAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0bmRQayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0bmRQqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//Time"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_WStkoAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0bmRQ6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0bvbMKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//GRM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_XVWGUAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0bvbMayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0bvbMqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//Alloc"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_ar8OsAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0b5MMKyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0b5MMayKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//CoreElements"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_-wEewECLEd6UTJZnztgOLw"/>
    </profileApplication>
    <profileApplication xmi:id="_0b5MMqyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cCWIKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HLAM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_yNSZIAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0cCWIayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cCWIqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwComputing"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_aMhZsBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cCWI6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cCWJKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwCommunication"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_bmL7UBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cMHIKyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cMHIayKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwTiming"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_dG2c0BJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cMHIqyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cMHI6yKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwDevice"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_ja8REBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cMHJKyKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cfCEKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwStorage/HwMemory"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_gHI-ABJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cfCEayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cfCEqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwStorage/HwStorageManager"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_hst0sBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cfCE6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cfCFKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical/HwStorage"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_ZJjPoEIbEd6dmI2dd6jVFQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0cfCFayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cozEKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwLogical"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_P80EcBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cozEayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cozEqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwPhysical/HwLayout"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_uAf6gBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cozE6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cx9AKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwPhysical/HwPower"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_vrbyUBJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cx9AayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0cx9AqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwPhysical"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_R7sL8BJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0cx9A6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0c7uAKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM/HwGeneral"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_WGZ44BJwEdygQ5HMNSpiZw"/>
    </profileApplication>
    <profileApplication xmi:id="_0c7uAayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0c7uAqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HRM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_2dtsgAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0c7uA6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0c7uBKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SRM/SW_ResourceCore"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_-1fcUBJdEdy3Td9UhuLFPg"/>
    </profileApplication>
    <profileApplication xmi:id="_0c7uBayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dFfAKyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SRM/SW_Concurrency"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_A_vtYBJeEdy3Td9UhuLFPg"/>
    </profileApplication>
    <profileApplication xmi:id="_0dFfAayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dFfAqyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SRM/SW_Brokering"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_Cf874BJeEdy3Td9UhuLFPg"/>
    </profileApplication>
    <profileApplication xmi:id="_0dFfA6yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dOo8KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SRM/SW_Interaction"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_EIfnABJeEdy3Td9UhuLFPg"/>
    </profileApplication>
    <profileApplication xmi:id="_0dOo8ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dOo8qyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SRM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_3VS0wAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0dOo86yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dYZ8KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//GCM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_YgAioAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0dYZ8ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dYZ8qyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//GQAM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_4bV20APMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0dYZ86yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0dhj4KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//SAM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_5ZCOIAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0dhj4ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0drU4KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//PAM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_6c2bkAPMEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0drU4ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0drU4qyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//RSM"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_DIIJoAPNEdyuUt-4qHuVvQ"/>
    </profileApplication>
    <profileApplication xmi:id="_0drU46yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0d1F4KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//VSL/DataTypes"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_9FdqwA-MEdyLh7muGbCqMw"/>
    </profileApplication>
    <profileApplication xmi:id="_0d1F4ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0d1F4qyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//VSL/Variables"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_9UgzYA-MEdyLh7muGbCqMw"/>
    </profileApplication>
    <profileApplication xmi:id="_0d1F46yKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0eIA0KyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//VSL/Operators"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_jg_Z8PfhEd-f4r3MXmUB9g"/>
    </profileApplication>
    <profileApplication xmi:id="_0eIA0ayKEeKPKesk8xj-aQ">
      <eAnnotations xmi:id="_0eIA0qyKEeKPKesk8xj-aQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//VSL"/>
      </eAnnotations>
      <appliedProfile href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_CHiIYA-LEdyNj8xzjk-DoA"/>
    </profileApplication>
  </uml:Model>
  <GQAM:GaAnalysisContext xmi:id="_57QX4KyKEeKPKesk8xj-aQ" base_Package="_MPs1EKyKEeKPKesk8xj-aQ" base_NamedElement="_MPs1EKyKEeKPKesk8xj-aQ">
    <context>{contextParams={in$capacity=2,in$concurrent=2}}&#xD;
</context>
  </GQAM:GaAnalysisContext>
  <GQAM:GaWorkloadEvent xmi:id="_KO6MkKyLEeKPKesk8xj-aQ" pattern="closed(population=2,extDelay=(exp(1),s))" base_NamedElement="_pB9fgKyKEeKPKesk8xj-aQ"/>
  <PAM:PaStep xmi:id="_RXpJ0KyLEeKPKesk8xj-aQ" base_NamedElement="_ryjX0KyKEeKPKesk8xj-aQ"/>
  <PAM:PaStep xmi:id="_6-5JsKyLEeKPKesk8xj-aQ" base_NamedElement="_c8_cUKyLEeKPKesk8xj-aQ" base_Action="_c8_cUKyLEeKPKesk8xj-aQ" host="_ZP7fQKyMEeKPKesk8xj-aQ">
    <hostDemand>(exp(2),s)</hostDemand>
  </PAM:PaStep>
  <PAM:PaStep xmi:id="__G9yUKyLEeKPKesk8xj-aQ" base_NamedElement="_s01ewKyLEeKPKesk8xj-aQ" prob="0.7"/>
  <PAM:PaStep xmi:id="_EmEfUKyMEeKPKesk8xj-aQ" base_NamedElement="_tepQwKyLEeKPKesk8xj-aQ" prob="0.3"/>
  <PAM:PaStep xmi:id="_HBicMKyMEeKPKesk8xj-aQ" base_NamedElement="_pzbjQKyLEeKPKesk8xj-aQ" base_Action="_pzbjQKyLEeKPKesk8xj-aQ" host="_ZP7fQKyMEeKPKesk8xj-aQ">
    <hostDemand>(exp(4),s)</hostDemand>
  </PAM:PaStep>
  <PAM:PaStep xmi:id="_NOUukKyMEeKPKesk8xj-aQ" base_NamedElement="_qShTAKyLEeKPKesk8xj-aQ" base_Action="_qShTAKyLEeKPKesk8xj-aQ" host="_ZP7fQKyMEeKPKesk8xj-aQ">
    <hostDemand>(exp(2),s)</hostDemand>
  </PAM:PaStep>
  <PAM:PaStep xmi:id="_OzofgKyMEeKPKesk8xj-aQ" base_NamedElement="_q5WpgKyLEeKPKesk8xj-aQ" base_Action="_q5WpgKyLEeKPKesk8xj-aQ" host="_ZP7fQKyMEeKPKesk8xj-aQ">
    <hostDemand>(exp(2),s)</hostDemand>
  </PAM:PaStep>
  <GQAM:GaExecHost xmi:id="_ZP7fQKyMEeKPKesk8xj-aQ" resMult="2" base_Classifier="_TprocKyMEeKPKesk8xj-aQ" schedPolicy="FIFO">
    <throughput>(exp(1),s)</throughput>
  </GQAM:GaExecHost>
</xmi:XMI>

please give me some suggestion
Thank you in advnce!
Re: the error of runing ATL transformations in Java [message #1053088 is a reply to message #1053058] Thu, 02 May 2013 11:34 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
It seems that Papyrus is adding an extra dependency to something (another UML profile?) having this URI 'http://www.eclipse.org/papyrus/GQAM/1' (and you may have the same problem with "http://www.eclipse.org/papyrus/PAM/1").
Are you really using this in your model? Is you model really a standard UML model?
If no the dependency to these elements could be removed, if yes you should also load these profiles (?) as other inputs of your transformation.

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: the error of runing ATL transformations in Java [message #1053188 is a reply to message #1053088] Fri, 03 May 2013 02:51 Go to previous messageGo to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
hello,
'http://www.eclipse.org/papyrus/GQAM/1'and 'http://www.eclipse.org/papyrus/PAM/1' are part of 'http://www.eclipse.org/papyrus/MARTE/1' .MARTE is also uml profile.
In ATL configuration ,I just need 'uri:http://www.eclipse.org/uml2/4.0.0/UML'input metamodel and my output metamodel ,so that my atl transformation run successfully without loading these profiles as other inputs of your transformation.
However my atl transformation in java occur errors .I do something like :
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/GQAM/1", org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage.eINSTANCE);

EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/PAM/1", org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage.eINSTANCE);

Are there errors ?
Now the new error occur:
Operation not found: IN!A_actor_usecase.getValue(org.eclipse.m2m.atl.engine.emfvm.lib.OclUndefined,java.lang.String)

I think it is difficult to run my atl transforation in java .
Please give me some suggestion
Thank you in advance !
Re: the error of runing ATL transformations in Java [message #1053419 is a reply to message #1053188] Sun, 05 May 2013 10:02 Go to previous messageGo to next message
Mathias Colpaert is currently offline Mathias ColpaertFriend
Messages: 13
Registered: November 2012
Junior Member
Hi,
I dont know what your problem is. Maybe you can debug some stuff like this, replace:

EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/GQAM/1", org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage.eINSTANCE);

EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/PAM/1", org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage.eINSTANCE);


With this:

EPackage.Registry.INSTANCE.put(org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage.eNS_URI, org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage.eINSTANCE);

EPackage.Registry.INSTANCE.put(org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage.eNS_URI, org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage.eINSTANCE);

System.out.println("URI1 = " + org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage.eNS_URI);

System.out.println("URI2 = " + org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage.eNS_URI);


Of course, also dont forget to register UML itself (apart from your profile). To do so, add references to UML jars in your project dependencies, and import org.eclipse.uml2.uml.UMLPackage, next add:

EPackage.Registry.INSTANCE.put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);


Dont know if it helps.

Regards,
M
Re: the error of runing ATL transformations in Java [message #1053428 is a reply to message #1053419] Sun, 05 May 2013 12:53 Go to previous messageGo to next message
yesheng chai is currently offline yesheng chaiFriend
Messages: 64
Registered: March 2013
Member
hello,
I have done what you said.Now the problem is that I can not use the opration in UML metamodel .The opration getValue is to get the value of an attribute of stereotype.
Do you know how to solve this problem?
Thank you in advance.
Re: the error of runing ATL transformations in Java [message #1053492 is a reply to message #1053428] Mon, 06 May 2013 09:26 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

As indicated from http://wiki.eclipse.org/ATL/Howtos#How_can_I_retrieve_tagged_values_from_stereotyped_UML_model_elements.3F, the first parameter of the getValue method has to be of type UML!Stereotype.
The error you got seems to show that the element you're passing as first parameter is of type OclUndefined: have you checked that you are first able to get the right UML!Stereotype element?


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:convertion from string to BigDecimal
Next Topic:Error launching ATL transformation as Java application
Goto Forum:
  


Current Time: Fri Mar 29 02:21:58 GMT 2024

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

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

Back to the top