[ATL] Empty Stack [message #100129] |
Tue, 17 February 2009 09:32  |
Eclipse User |
|
|
|
Hello,
I'm new in ATL. I'd like to know whi I get Empty Stack Exception when
launching next transformation:
module uml2dsl; -- Module Template
create OUT : scxml from IN : uml;
entrypoint rule trans() {
to r : OUT!DocumentRoot (
)
do {r;}
}
Thanks in advance,
Ander.
This is the console output:
INFO: Trying to connect to remote debuggee
INFO: Connected.
GRAVE: ********************************* ERROR
*********************************
GRAVE:
java.lang.Exception
at
org.eclipse.m2m.atl.engine.vm.NetworkDebugger.error(NetworkD ebugger.java:165)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:95)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:87)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:173)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:169)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:111)
at org.eclipse.m2m.atl.engine.AtlLauncher.debug(AtlLauncher.jav a:105)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:324)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:426)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.access$0(AtlR egularVM.java:408)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM$1.run(AtlRegu larVM.java:386)
GRAVE: null
java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at java.util.Stack.pop(Unknown Source)
at org.eclipse.m2m.atl.engine.vm.ASMStackFrame.pop(ASMStackFram e.java:100)
at
org.eclipse.m2m.atl.engine.vm.ASMStackFrame.popVariable(ASMS tackFrame.java:128)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:258)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:169)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:111)
at org.eclipse.m2m.atl.engine.AtlLauncher.debug(AtlLauncher.jav a:105)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:324)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:426)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.access$0(AtlR egularVM.java:408)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM$1.run(AtlRegu larVM.java:386)
GRAVE: A.main() : ??#22 null
GRAVE: local variables = {self=uml2dsl : ASMModule}
GRAVE: local stack = []
GRAVE: A.trans() : ??#3 4:5-5:3
GRAVE: local variables = {self=uml2dsl : ASMModule}
GRAVE: local stack = []
GRAVE:
************************************************************ *************
|
|
|
Re: [ATL] Empty Stack [message #100199 is a reply to message #100129] |
Wed, 18 February 2009 08:00  |
Eclipse User |
|
|
|
Hello,
There is an error in the model element syntax:
Ander Zubizarreta a écrit :
> Hello,
>
> I'm new in ATL. I'd like to know whi I get Empty Stack Exception when
> launching next transformation:
>
> module uml2dsl; -- Module Template
> create OUT : scxml from IN : uml;
> entrypoint rule trans() {
> to r : OUT!DocumentRoot (
OUT refers to the model, which metamodel is scxml. As the DocumentRoot
element is defined into the scxml metamodel, the correct syntax is:
to r : scxml!DocumentRoot (
Best regards,
William
> )
> do {r;}
> }
>
>
> Thanks in advance,
>
> Ander.
>
>
> This is the console output:
>
> INFO: Trying to connect to remote debuggee
> INFO: Connected.
> GRAVE: ********************************* ERROR
> *********************************
> GRAVE:
> java.lang.Exception
> at
> org.eclipse.m2m.atl.engine.vm.NetworkDebugger.error(NetworkD ebugger.java:165)
>
> at
> org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:95)
>
> at
> org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:87)
>
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:173)
> at
> org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
>
> at
> org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
>
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
> at
> org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
>
> at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:169)
> at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:111)
> at org.eclipse.m2m.atl.engine.AtlLauncher.debug(AtlLauncher.jav a:105)
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:324)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:426)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.access$0(AtlR egularVM.java:408)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM$1.run(AtlRegu larVM.java:386)
> GRAVE: null
> java.util.EmptyStackException
> at java.util.Stack.peek(Unknown Source)
> at java.util.Stack.pop(Unknown Source)
> at
> org.eclipse.m2m.atl.engine.vm.ASMStackFrame.pop(ASMStackFram e.java:100)
> at
> org.eclipse.m2m.atl.engine.vm.ASMStackFrame.popVariable(ASMS tackFrame.java:128)
>
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:258)
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
> at
> org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
>
> at
> org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
>
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
> at
> org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
> at
> org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
>
> at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:169)
> at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:111)
> at org.eclipse.m2m.atl.engine.AtlLauncher.debug(AtlLauncher.jav a:105)
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:324)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:426)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM.access$0(AtlR egularVM.java:408)
>
> at
> org.eclipse.m2m.atl.adt.launching.AtlRegularVM$1.run(AtlRegu larVM.java:386)
> GRAVE: A.main() : ??#22 null
> GRAVE: local variables = {self=uml2dsl : ASMModule}
> GRAVE: local stack = []
> GRAVE: A.trans() : ??#3 4:5-5:3
> GRAVE: local variables = {self=uml2dsl : ASMModule}
> GRAVE: local stack = []
> GRAVE:
> ************************************************************ *************
|
|
|
Powered by
FUDForum. Page generated in 0.04382 seconds