Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » I've problems running an ATL M2T transformation from UML(Can you help me to understand what's the problem?)
I've problems running an ATL M2T transformation from UML [message #530963] Mon, 03 May 2010 08:20 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: April 2010
Junior Member
This is the output the consolle gives to me:

org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model element Package from UML
Java Stack:
org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model element Package from UML
at org.eclipse.m2m.atl.engine.emfvm.ASM.registerOperations(ASM. java:232)
at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:176)
at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.launch (EMFVMLauncher.java:162)
at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.launch (EMFVMLauncher.java:135)
at org.eclipse.m2m.atl.core.service.LauncherService.launch(Laun cherService.java:135)
at org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDel egate.launch(AtlLaunchConfigurationDelegate.java:222)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.m2m.atl.engine.emfvm.ASM$SignatureParsingExcepti on: Could not find model element Package from UML
at org.eclipse.m2m.atl.engine.emfvm.ASM.parseTypeInternal(ASM.j ava:408)
at org.eclipse.m2m.atl.engine.emfvm.ASM.parseType(ASM.java:368)
at org.eclipse.m2m.atl.engine.emfvm.ASM.registerOperations(ASM. java:229)
... 10 more


This is the file i'm running:

module UML2Autori;
create OUT: Autori from IN: UML;
uses UML2TXTLib;

-- Matched rules
rule repairBox {
from
r: UML!Class (r.isRepair())
to
rb: Autori!RepairBox (name<-r.name,rate<-r.getMTTR())
}

rule triggering {
from
t: UML!Association (t.isTrigger())
using {
repairName: String = t.getRepair().name;
triggeringevent: UML!CLass = t.getAffectedComponent();
}
to
a: Autori!TriggerArc (src<-repairName,dest<-triggeringevent.name)
do {
thisModule.searchRepair(triggeringevent,repairName);
}
}

rule component {
from
c: UML!Class (c.isComponent())
do {
thisModule.componentTranslation(c);
}
}

rule errorpropagation {
from
aUml: UML!Association (aUml.isErrorPropagation())
using {
source: UML!Class = aUml.startsFrom();
destination: UML!Class = aUml.endsTo();
}
to
arc: Autori!EventToGate (src<-source.name,dest<-destination.name + '_gate')
}

So can you help me?
Re: I've problems running an ATL M2T transformation from UML [message #530971 is a reply to message #530963] Mon, 03 May 2010 08:50 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000609050509020306080502
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

ATL is an M2M technology, and its team mainly monitors the m2m
newsgroup, I've added it to the to: list of this answer so that they can
help you on your problem .

Laurent

osvaldos88@yahoo.it wrote:
> This is the output the consolle gives to me:
>
> org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model
> element Package from UML
> Java Stack:
> org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model
> element Package from UML
> at org.eclipse.m2m.atl.engine.emfvm.ASM.registerOperations(ASM.
> java:232)
> at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:176)
> at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.launch
> (EMFVMLauncher.java:162)
> at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.launch
> (EMFVMLauncher.java:135)
> at org.eclipse.m2m.atl.core.service.LauncherService.launch(Laun
> cherService.java:135)
> at org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDel
> egate.launch(AtlLaunchConfigurationDelegate.java:222)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L
> aunchConfiguration.java:853)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L
> aunchConfiguration.java:703)
> at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D
> ebugUIPlugin.java:866)
> at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu
> gin.java:1069)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.eclipse.m2m.atl.engine.emfvm.ASM$SignatureParsingExcepti
> on: Could not find model element Package from UML
> at org.eclipse.m2m.atl.engine.emfvm.ASM.parseTypeInternal(ASM.j
> ava:408)
> at org.eclipse.m2m.atl.engine.emfvm.ASM.parseType(ASM.java:368)
> at org.eclipse.m2m.atl.engine.emfvm.ASM.registerOperations(ASM.
> java:229)
> ... 10 more
>
>
> This is the file i'm running:
>
> module UML2Autori;
> create OUT: Autori from IN: UML;
> uses UML2TXTLib;
>
> -- Matched rules
> rule repairBox {
> from r: UML!Class (r.isRepair())
> to
> rb: Autori!RepairBox (name<-r.name,rate<-r.getMTTR())
> }
>
> rule triggering {
> from
> t: UML!Association (t.isTrigger())
> using {
> repairName: String = t.getRepair().name;
> triggeringevent: UML!CLass = t.getAffectedComponent(); }
> to
> a: Autori!TriggerArc (src<-repairName,dest<-triggeringevent.name)
> do {
> thisModule.searchRepair(triggeringevent,repairName);
> }
> }
>
> rule component {
> from c: UML!Class (c.isComponent())
> do {
> thisModule.componentTranslation(c);
> }
> }
>
> rule errorpropagation {
> from aUml: UML!Association (aUml.isErrorPropagation())
> using {
> source: UML!Class = aUml.startsFrom();
> destination: UML!Class = aUml.endsTo();
> }
> to
> arc: Autori!EventToGate (src<-source.name,dest<-destination.name
> + '_gate')
> }
>
> So can you help me?


--------------000609050509020306080502
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------000609050509020306080502--
Re: I've problems running an ATL M2T transformation from UML [message #854535 is a reply to message #530963] Tue, 24 April 2012 03:12 Go to previous messageGo to next message
no real deal last is currently offline no real deal lastFriend
Messages: 3
Registered: April 2012
Junior Member
Hello,

I got the amost same errors when run a application which use plugin of alt
Have you found the answer to youre problem?
It will be very nice if you could tell me why it produces such exceptions?
It seems the model to be transformed is not a vaild model, right?

BRs

[Updated on: Tue, 24 April 2012 03:13]

Report message to a moderator

Re: I've problems running an ATL M2T transformation from UML [message #870927 is a reply to message #854535] Thu, 10 May 2012 09:32 Go to previous messageGo to next message
no real deal last is currently offline no real deal lastFriend
Messages: 3
Registered: April 2012
Junior Member
i got almost the same problem.
"Could not find model element EPackage from Model
Java Stack"
have you got the answer?

Exception in thread "main" org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model element EPackage from Model
Java Stack:
Re: I've problems running an ATL M2T transformation from UML [message #870928 is a reply to message #530971] Thu, 10 May 2012 09:34 Go to previous messageGo to next message
no real deal last is currently offline no real deal lastFriend
Messages: 3
Registered: April 2012
Junior Member
could you add me to newsgroup m2m, so that i could ask some help for the almost same Error
"Exception in thread "main" org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model element EPackage from Model
Java Stack:...

BRs
Re: I've problems running an ATL M2T transformation from UML [message #870939 is a reply to message #870928] Thu, 10 May 2012 09:52 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

M2M has been renamed MMT to avoid confusion with the increasingly
prevalent Machine-to-Machine usage.

Each MMT project now has its own newsgroup so try eclipse.atl.

Regards

Ed Willink


On 10/05/2012 10:34, no real deal last wrote:
> could you add me to newsgroup m2m, so that i could ask some help for
> the almost same Error
> "Exception in thread "main"
> org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model
> element EPackage from Model
> Java Stack:...
>
> BRs
Previous Topic:[Galileo, XPAND] Plugin missing?
Next Topic:[Accele0 3] Quick start/Getting started problem
Goto Forum:
  


Current Time: Thu Mar 28 18:37:57 GMT 2024

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

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

Back to the top