[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] programatical launch of ATL transformation from ecore to ecore

Hello,

I am trying to do a programatical launch of an ATL transformation from Ecore to Ecore.

And I am getting this error message:

Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.SimpleDebugger error
SEVERE: ****** BEGIN Stack Trace
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.SimpleDebugger error
SEVERE: message: ERROR: could not find operation allInstancesFrom on MOFLeft!EClass having supertypes: [MOFLeft!EClassifier, OclType, OclAny] (including Java operations)
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: A.main() : ??#22 null
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local variables = {self=union_execute_metamodel_transformation : ASMModule}
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local stack = []
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: A.__matcher__() : ??#3 null
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local variables = {self=union_execute_metamodel_transformation : ASMModule}
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local stack = []
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: A.__matchCLASSLeft() : ??#9 null
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local variables = {self=union_execute_metamodel_transformation : ASMModule}
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.ExecEnv printStackTrace
SEVERE: local stack = [MOFLeft!EClass, Sequence {}]
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.SimpleDebugger error
SEVERE: ****** END Stack Trace
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.vm.SimpleDebugger error
INFO: Execution terminated due to error (see launch configuration to allow continuation after errors).
Jul 9, 2008 10:44:41 AM org.eclipse.m2m.atl.engine.AtlLauncher launch
SEVERE: ERROR: could not find operation allInstancesFrom on MOFLeft!EClass having supertypes: [MOFLeft!EClassifier, OclType, OclAny] (including Java operations)
java.lang.RuntimeException: ERROR: could not find operation allInstancesFrom on MOFLeft!EClass having supertypes: [MOFLeft!EClassifier, OclType, OclAny] (including Java operations)
at org.eclipse.m2m.atl.engine.vm.SimpleDebugger.error(SimpleDebugger.java:195)
at org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(StackFrame.java:95)
at org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(StackFrame.java:91)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.invoke(ASMEMFModelElement.java:700)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:171)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:143)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:101)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:171)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:143)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:101)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.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.java:169)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.java:111)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.java:87)
at UnionCOP.launchATLTransformation(UnionCOP.java:113)
at UnionCOP.process(UnionCOP.java:63)
at MMComposition.process(MMComposition.java:28)
at Main.main(Main.java:47)


When I did the ATL transformation in Eclipse, I get a similar error and I solved it by using the option "is a metametamodel" in the Run Configuration of the ATL Eclipse plugin.

How can I set this option to the model handler? Is there any specific model handler for Ecore to Ecore transformations?

Thank you in advance for your help.