[ATL] Model Copy [message #103645] |
Fri, 17 April 2009 03:33  |
Eclipse User |
|
|
|
Hi all,
I try to generate SysMLCopy with EModelCopyGenerator query on ATL 2, and
i have this error (I try with UML.ecore and i have same 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() : ??#68 4:29-4:73
GRAVE: local variables = {self=EModelCopyGenerator : ASMModule,
acc='-- @atlcompiler atl2006
GRAVE: -- Generated by: $Id$
GRAVE: module EModelCopy;
GRAVE: create OUT : OUTMODEL from IN : INMODEL;
GRAVE: helper def : inElements : Set(INMODEL!"ecore::EObject") =
INMODEL!"ecore::EObject".allInstancesFrom('IN');
GRAVE: '}
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:195)
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:91)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:700)
thank for your help
|
|
|
|
Re: [ATL] Model Copy [message #104126 is a reply to message #103678] |
Mon, 27 April 2009 02:21  |
Eclipse User |
|
|
|
Skander a écrit :
> hi i had the same problem and the solution i found is to change the
> first helper generated "inElements" by changing
> INMODEL!"Ecore::EObject" to the most abstract element of your metamodel,
> in my case i changed it to INMODEL!"ATL::LocatedElement".
>
> Skander.
>
Hi,
I'd resolve my problem. Now i can genearte my SysmlCopy.atl file with
modelCopyGenerator.atl query.
Best regards
Laurent
|
|
|
Powered by
FUDForum. Page generated in 0.05710 seconds