Problem with simple transformation [message #81398] |
Thu, 15 May 2008 13:27  |
Eclipse User |
|
|
|
Originally posted by: jobamo.gmail.com
Hi!
I'm writing my first ATL's transformation for a project degree.
I have this problem: I'm trying to execute this transformation:
-- @atlcompiler atl2006
module ecore2maude; -- Module Template
create OUT : Maude from IN : Ecore;
rule clase2sort {
from
c : Ecore!EClass
to
s : Maude!Sort(
name <- c.name
)
}
and it produces an error:
GRAVE: ****** BEGIN Stack Trace
GRAVE: message: ERROR: could not find operation allInstancesFrom on
Ecore!EClass having supertypes: [Ecore!EClassifier, OclType, OclAny]
(including Java operations)
GRAVE: A.main() : ??#22 null
GRAVE: local variables = {self=ecore2maude : ASMModule}
GRAVE: local stack = []
GRAVE: A.__matcher__() : ??#1 null
GRAVE: local variables = {self=ecore2maude : ASMModule}
GRAVE: local stack = []
GRAVE: A.__matchclase2sort() : ??#4 null
GRAVE: local variables = {self=ecore2maude : ASMModule}
GRAVE: local stack = []
GRAVE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow
continuation after errors).
GRAVE: ERROR: could not find operation allInstancesFrom on Ecore!EClass
having supertypes: [Ecore!EClassifier, OclType, OclAny] (including Java
operations)
java.lang.RuntimeException: ERROR: could not find operation
allInstancesFrom on Ecore!EClass having supertypes: [Ecore!EClassifier,
OclType, OclAny] (including Java operations)
at
org.eclipse.m2m.atl.engine.vm.SimpleDebugger.error(SimpleDeb ugger.java:185)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:85)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:81)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:671)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:230)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:161)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:133)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:91)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:230)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:161)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:133)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:91)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:230)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:161)
at
org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:289)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:155)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:105)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:81)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:351)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:453)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:425)
at
org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:35)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:766)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:608)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:899)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlu gin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I'm trying to do:
-- @atlcompiler atl2006
module ecore2maude; -- Module Template
create OUT : Maude from IN : Ecore;
rule clase2sort {
from
c : Ecore!EClassifier(c.oclIsTypeOf(Ecore!EClass))
to
s : Maude!Sort(
name <- c.name
)
}
and it works!!
Where is the problem?
Anybody can help me??
Thanks!!
|
|
|
|
|
|
Re: [ATL] Problem with simple transformation [message #82166 is a reply to message #82066] |
Mon, 26 May 2008 06:03  |
Eclipse User |
|
|
|
Hello,
The version you use is out-of-date, you may have find it on the
"archive" page. This is a pre-version of the ATL 2.0 and was developped
when ATL was hosted in the GMT project.
The official 2.0.0 ATL version is not yet released and will be
synchronized with the Ganymede release. Here is a link to the download
page :
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl
Best regards,
William
J.Bautista a écrit :
> Hi Netuh,
>
> I have installed only an "ATL Ready-To-Use Bundle" (ATL Bundle 2.0
> Standard Version). Do I need to install something else?
> And I think that the metamodel works because it is tested with others
> examples.
>
> Thanks for try to help me
>
|
|
|
Powered by
FUDForum. Page generated in 0.28974 seconds