Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » error lauch atl transformation programmatic - could not find model UML
error lauch atl transformation programmatic - could not find model UML [message #80613] Sat, 03 May 2008 21:05 Go to next message
Victor Hugo is currently offline Victor HugoFriend
Messages: 20
Registered: July 2009
Junior Member
Hi people,

i need help again..
i`m trying to run atl transformation programmatic but i get an error..
someone know where i can found an atl transformation over uml2 models? An
transformation that uses uml2 metamodel, uml2 model in, uml2 model out..
this will be great help!



HERE YOU CAN SEE MY PROPERTIES FILE:

properties
--in
IN=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTes t/HealthWatchers.uml2
UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
EMF --in
PROFILE=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/mode lsTest/crossmda_profile-1.1.uml2
UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
EMF --in
ASPECTS=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/mode lsTest/model_aspects.uml2
UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
EMF
--out OUT=file:/C:\dev\MESTRADO\workspace\CrossMDAMarcelo\z_Lixo\m .xmi
UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
EMF
--lib
MergeHelpers=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo /lib/MergeHelpers.asm
--lib
CrossMDAHelpers=file:/C:/dev/MESTRADO/workspace/CrossMDAMarc elo/lib/CrossMDAHelpers.asm


HERE YOU CAN SEE THE OUT PRINTED AFTER LOAD MODELS:
modelId: UML2
uri =>
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamodel/Su perstructure.uml

modelId: IN
uri =>
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/H ealthWatchers.uml2

modelId: PROFILE
uri =>
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/c rossmda_profile-1.1.uml2

modelId: ASPECTS
uri =>
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/m odel_aspects.uml2
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/lib/MergeHel pers.asm
file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/lib/CrossMDA Helpers.asm

HERE YOU CAN SEE THE TYPE O EACH MODEL:
PROFILE : UML2
ASPECTS : UML2
IN : UML2
UML2 : MOF
OUT : UML2

AND FINALLY, HERE YOU CAN SEE THE CONSOLE AFTER CALL
myLauncher.launch(trans, libs, models, params);


WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
WARNING: could not find model UML.
****** BEGIN Stack Trace
exception:
java.lang.NullPointerException
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.getExtent(AS MEMFModel.java:414)
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.initClassifi ersInAllExtents(ASMEMFModel.java:88)
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.getClassifie r(ASMEMFModel.java:68)
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.findModelEle ment(ASMEMFModel.java:136)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:26 5)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:1 23)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:8 3)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 8)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 4)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 0)
at
br.ufrj.nce.crossmda.transformation.engine.implementation.AT LExecute.run(ATLExecute.java:431)
at
br.ufrj.nce.crossmda.modelgenerate.PSMGenerateImpl.execute(P SMGenerateImpl.java:121)
at
br.ufrj.nce.crossmda.gui.AspectIntegrationEMF.gerarPSM(Aspec tIntegrationEMF.java:649)
at
br.ufrj.nce.crossmda.gui.AspectIntegrationEMF.access$42(Aspe ctIntegrationEMF.java:604)
at
br.ufrj.nce.crossmda.gui.AspectIntegrationEMF$28$1.run(Aspec tIntegrationEMF.java:2727)
at java.lang.Thread.run(Unknown Source)
A.main() : ??#22 null
local variables = {self=M : ASMModule}
local stack = []
A.__matcher__() : ??#1 null
local variables = {self=M : ASMModule}
local stack = []
A.__matchMergeClass() : ??#2 null
local variables = {self=M : ASMModule}
local stack = []
****** END Stack Trace

best regards :)
Re: error lauch atl transformation programmatic - could not find model UML [message #80764 is a reply to message #80613] Tue, 06 May 2008 09:38 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
Hello,

The warning indicates : "could not find model UML"
In yout launch command, you specify the "UML2" metamodel. Could you
please check the naming in the transformation ? It must be UML2 to work.

Best regards,

William

Victor Hugo a écrit :
> Hi people,
>
> i need help again..
> i`m trying to run atl transformation programmatic but i get an error..
> someone know where i can found an atl transformation over uml2 models?
> An transformation that uses uml2 metamodel, uml2 model in, uml2 model
> out.. this will be great help!
>
>
>
> HERE YOU CAN SEE MY PROPERTIES FILE:
>
> properties
> --in
> IN=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTes t/HealthWatchers.uml2
> UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
> EMF --in
> PROFILE=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/mode lsTest/crossmda_profile-1.1.uml2
> UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
> EMF --in
> ASPECTS=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/mode lsTest/model_aspects.uml2
> UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
> EMF --out
> OUT=file:/C:\dev\MESTRADO\workspace\CrossMDAMarcelo\z_Lixo\m .xmi
> UML2=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamod el/Superstructure.uml
> EMF --lib
> MergeHelpers=file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo /lib/MergeHelpers.asm
> --lib
> CrossMDAHelpers=file:/C:/dev/MESTRADO/workspace/CrossMDAMarc elo/lib/CrossMDAHelpers.asm
>
>
> HERE YOU CAN SEE THE OUT PRINTED AFTER LOAD MODELS:
> modelId: UML2
> uri =>
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/metamodel/Su perstructure.uml
>
>
> modelId: IN
> uri =>
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/H ealthWatchers.uml2
>
>
> modelId: PROFILE
> uri =>
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/c rossmda_profile-1.1.uml2
>
>
> modelId: ASPECTS
> uri =>
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/modelsTest/m odel_aspects.uml2
>
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/lib/MergeHel pers.asm
> file:/C:/dev/MESTRADO/workspace/CrossMDAMarcelo/lib/CrossMDA Helpers.asm
>
> HERE YOU CAN SEE THE TYPE O EACH MODEL:
> PROFILE : UML2
> ASPECTS : UML2
> IN : UML2
> UML2 : MOF
> OUT : UML2
>
> AND FINALLY, HERE YOU CAN SEE THE CONSOLE AFTER CALL
> myLauncher.launch(trans, libs, models, params);
>
>
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> WARNING: could not find model UML.
> ****** BEGIN Stack Trace
> exception: java.lang.NullPointerException
> at
> org.atl.engine.repositories.emf4atl.ASMEMFModel.getExtent(AS MEMFModel.java:414)
>
> at
> org.atl.engine.repositories.emf4atl.ASMEMFModel.initClassifi ersInAllExtents(ASMEMFModel.java:88)
>
> at
> org.atl.engine.repositories.emf4atl.ASMEMFModel.getClassifie r(ASMEMFModel.java:68)
>
> at
> org.atl.engine.repositories.emf4atl.ASMEMFModel.findModelEle ment(ASMEMFModel.java:136)
>
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:26 5)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:1 23)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:8 3)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 8)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 4)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 0)
> at
> br.ufrj.nce.crossmda.transformation.engine.implementation.AT LExecute.run(ATLExecute.java:431)
>
> at
> br.ufrj.nce.crossmda.modelgenerate.PSMGenerateImpl.execute(P SMGenerateImpl.java:121)
>
> at
> br.ufrj.nce.crossmda.gui.AspectIntegrationEMF.gerarPSM(Aspec tIntegrationEMF.java:649)
>
> at
> br.ufrj.nce.crossmda.gui.AspectIntegrationEMF.access$42(Aspe ctIntegrationEMF.java:604)
>
> at
> br.ufrj.nce.crossmda.gui.AspectIntegrationEMF$28$1.run(Aspec tIntegrationEMF.java:2727)
>
> at java.lang.Thread.run(Unknown Source)
> A.main() : ??#22 null
> local variables = {self=M : ASMModule}
> local stack = []
> A.__matcher__() : ??#1 null
> local variables = {self=M : ASMModule}
> local stack = []
> A.__matchMergeClass() : ??#2 null
> local variables = {self=M : ASMModule}
> local stack = []
> ****** END Stack Trace
>
> best regards :)
>
>
>
Previous Topic:[ATL] Problem with matched rule and multiple source models
Next Topic:[ATL] Copying one model with reference to another => ClassCastException
Goto Forum:
  


Current Time: Mon Oct 14 16:24:18 GMT 2019

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

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

Back to the top