Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Model Copy
[ATL] Model Copy [message #103645] Fri, 17 April 2009 07:33 Go to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
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 #103678 is a reply to message #103645] Fri, 17 April 2009 08:32 Go to previous messageGo to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
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.
Re: [ATL] Model Copy [message #104126 is a reply to message #103678] Mon, 27 April 2009 06:21 Go to previous message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
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
Previous Topic:[ATL] ecore editor
Next Topic:[ATL] Delete element in refining mode
Goto Forum:
  


Current Time: Thu Dec 26 14:12:52 GMT 2024

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

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

Back to the top