Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Empty Stack
[ATL] Empty Stack [message #100129] Tue, 17 February 2009 14:32 Go to next message
Ander is currently offline AnderFriend
Messages: 19
Registered: July 2009
Junior Member
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 13:00 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
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:
> ************************************************************ *************
Previous Topic:[ATL] (3.0) New JAVA ATL3.0 launch procedure?!
Next Topic:[QVTO] Applying stereotypes to out uml model
Goto Forum:
  


Current Time: Sat Apr 20 03:03:32 GMT 2024

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

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

Back to the top