Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Empty stack Exception
[ATL] Empty stack Exception [message #56752] Wed, 08 August 2007 18:52 Go to next message
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Member
Hi, I have a problem launching an ATL transformation between two models.


This is the header and the first rule of the transformation (the other
rules are very similar: I have a rule for each element of DARWIN
metamodel):

-- @atlcompiler atl2006

module UML2Copy;

create OUT : A0 from IN : DARWIN;


rule DurationInterval {
from s : DARWIN!DurationInterval
to t : A0!DurationInterval (
name <- s.name,
visibility <- s.visibility,
eAnnotations <- s.eAnnotations,
ownedComment <- s.ownedComment,
clientDependency <- s.clientDependency,
nameExpression <- s.nameExpression,
templateParameter <- s.templateParameter,
type <- s.type,
min <- s.min,
max <- s.max)
}

A0 and DARWIN metamodels have a common section and I with these rules I
want to copy each element of the commmon section.

Executing the transformation I have the following exception, does someone
know why? If I isolate one rule tha transformation works!


****** BEGIN Stack Trace
exception:
java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at java.util.Stack.pop(Unknown Source)
at org.atl.engine.vm.ASMStackFrame.pop(ASMStackFrame.java:90)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:30 0)
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 36)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:9 4)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:6 8)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:6 4)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:230)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:168)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:145)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:121)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:97)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:754)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:944)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
A.main() : ??#22 null
local variables = {self=UML2Copy : ASMModule}
local stack = []
A.__matcher__() : ??#107 null
local variables = {self=UML2Copy : ASMModule}
local stack = []
A.__matchEAnnotation() : ??#0 null
local variables = {self=UML2Copy : ASMModule}
local stack = []
****** END Stack Trace
Execution terminated due to error (see launch configuration to allow
continuation after errors).
Re: [ATL] Empty stack Exception [message #56807 is a reply to message #56752] Wed, 08 August 2007 19:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: quentin.glineur.obeo.fr

Hi Ivano,

You told that the transformation works when you isolate one rule. Then,
could you isolate and send a pair of rules that make the transformation
crash ?

Thanks,

Quentin GLINEUR.

Ivano a écrit :
> Hi, I have a problem launching an ATL transformation between two models.
>
>
> This is the header and the first rule of the transformation (the other
> rules are very similar: I have a rule for each element of DARWIN
> metamodel):
>
> -- @atlcompiler atl2006
>
> module UML2Copy;
>
> create OUT : A0 from IN : DARWIN;
>
>
> rule DurationInterval {
> from s : DARWIN!DurationInterval to t : A0!DurationInterval (
> name <- s.name,
> visibility <- s.visibility,
> eAnnotations <- s.eAnnotations,
> ownedComment <- s.ownedComment,
> clientDependency <- s.clientDependency,
> nameExpression <- s.nameExpression,
> templateParameter <- s.templateParameter,
> type <- s.type,
> min <- s.min,
> max <- s.max)
> }
>
> A0 and DARWIN metamodels have a common section and I with these rules I
> want to copy each element of the commmon section.
> Executing the transformation I have the following exception, does
> someone know why? If I isolate one rule tha transformation works!
>
>
> ****** BEGIN Stack Trace
> exception: java.util.EmptyStackException
> at java.util.Stack.peek(Unknown Source)
> at java.util.Stack.pop(Unknown Source)
> at org.atl.engine.vm.ASMStackFrame.pop(ASMStackFrame.java:90)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:30 0)
> 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 36)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:9 4)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:6 8)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:6 4)
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:230)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:168)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:145)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:121)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:97)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:754)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:944)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> A.main() : ??#22 null
> local variables = {self=UML2Copy : ASMModule}
> local stack = []
> A.__matcher__() : ??#107 null
> local variables = {self=UML2Copy : ASMModule}
> local stack = []
> A.__matchEAnnotation() : ??#0 null
> local variables = {self=UML2Copy : ASMModule}
> local stack = []
> ****** END Stack Trace
> Execution terminated due to error (see launch configuration to allow
> continuation after errors).
>
>
>
>
>
Re: [ATL] Empty stack Exception [message #56992 is a reply to message #56807] Thu, 09 August 2007 14:46 Go to previous message
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Member
Hi, thank you for the help, but I solved the problem by myself.
It was only a launch configuration problem!

Thank You, Ivano
Previous Topic:[ATL] Is it possible to give parameters to an ATL transformation
Next Topic:[ATL] Why returning a sequence of a sequence ?
Goto Forum:
  


Current Time: Mon Jan 18 08:30:07 GMT 2021

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

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

Back to the top