| 
| [ATL] Empty stack Exception [message #56752] | Wed, 08 August 2007 14:52  |  | 
| Eclipse User  |  |  |  |  | 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 15:23   |  | 
| Eclipse User  |  |  |  |  | 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).
 >
 >
 >
 >
 >
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.03933 seconds