Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL cannot find local helper?
ATL cannot find local helper? [message #77439] Tue, 25 March 2008 12:32 Go to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

This is a multi-part message in MIME format.
--------------020401090608050206010105
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I have a helper getProcessor defined in an ATL module which is used in this same ATL module.
Somehow ATL manages to not find the helper, resulting in
ERROR: could not find operation getProcessor on Module having supertypes: [OclAny]

I've moved this helper from a local ATL library into the module itself, which didn't help.
The helper name was first misspelled in the library, but corrected later on.
Restarting Eclipse didn't help either (maybe it flushes some cache...)

I'm using ATL 2.0.0.v200803030819, EMF 2.3.2.v200802051830, and Eclipse 3.3.2 M20080221-1800

Any ideas? (wrong types?)

Thanks,
Rene

--------------020401090608050206010105
Content-Type: text/plain;
name="move_service_instance.atl"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="move_service_instance.atl"

LS1AYXRsY29tcGlsZXIgYXRsMjAwNgptb2R1bGUgbW92ZV9zZXJ2aWNlX2lu c3RhbmNlOwpj
cmVhdGUgT1VUX3VkZCA6IHVkZCBmcm9tIElOX3VkZCA6IHVkZCwgcGFyYW1l dGVycyA6IFhN
TDsKdXNlcyBsaWJUcmFuc2Zvcm1hdGlvbjsKdXNlcyBYTUxIZWxwZXJzOwoK LS0gcmVtYXAg
YSBjb21wb25lbnQgYWNyb3NzIDIgbm9kZXMKCnJ1bGUgY29weV9EZXBsb3lt ZW50RGlhZ3Jh
bUVkaXRNb2RlbCB7Cglmcm9tIGRkZW0gOiB1ZGQhRGVwbG95bWVudERpYWdy YW1FZGl0TW9k
ZWwKCXRvIGRkZW0xIDogdWRkIURlcGxveW1lbnREaWFncmFtRWRpdE1vZGVs KAoJCXNpemUg
PC0gZGRlbS5zaXplLAoJCW1ldGFkYXRhIDwtIGRkZW0ubWV0YWRhdGE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3JtYXRpb24gYW5kIGRkZW0uaXRlbU5hbWUgPSB0aGlzTW9kdWxlLmdl dFBhcmFtZXRl
cigndG9fbm9kZScpKQoJdG8gZGRlbTEgOiB1ZGQhTm9kZUVkaXRNb2RlbCgK CQljaGlsZHJl
biA8LSBpZiB0aGlzTW9kdWxlLmdldFByb2Nlc3NvcigndG9faWR4JykgPSBk ZGVtIHRoZW4K
CQkJCQkJZGRlbS5jaGlsZHJlbi5pbmNsdWRpbmcodGhpc01vZHVsZS5nZXRQ cm9jZXNzb3Io
J2Zyb21faWR4JykuZ2V0SXRlbSgnbW92ZWRfY29tcG9uZW50JywgMSkpCgkJ CQkJZWxzZQoJ
CQkJCQlkZGVtLmNoaWxkcmVuCgkJCQkJZW5kaWYKCSkKfQ==
--------------020401090608050206010105
Content-Type: text/plain;
name="getProcessor-exception.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="getProcessor-exception.txt"

parameters: moved_component='MMI' from_idx=1 from_node='MIPS_260' to_idx=3 to_node='MIPS_500'

SEVERE: ****** BEGIN Stack Trace
SEVERE: message: ERROR: could not find operation getProcessor on Module having supertypes: [OclAny]
SEVERE: A.main() : ??#24 null
SEVERE: local variables = {self=move_service_instance : ASMModule}
SEVERE: local stack = []
SEVERE: A.__exec__() : ??#88 null
SEVERE: local variables = {e=TransientLink {rule = 'delete_component', sourceElements = {ddem = IN_udd!<unnamed>}, targetElements = {ddem1 = OUT_udd!<unnamed>}, variables = {}}, self=move_service_instance : ASMModule}
SEVERE: local stack = []
SEVERE: A.__applydelete_component(1 : NTransientLink;) : ??#13 80:18-80:53
SEVERE: local variables = {ddem1=OUT_udd!<unnamed>, ddem=IN_udd!<unnamed>, link=TransientLink {rule = 'delete_component', sourceElements = {ddem = IN_udd!<unnamed>}, targetElements = {ddem1 = OUT_udd!<unnamed>}, variables = {}}, self=move_service_instance : ASMModule}
SEVERE: local stack = [OUT_udd!<unnamed>, OUT_udd!<unnamed>, move_service_instance : ASMModule]
SEVERE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow continuation after errors).
SEVERE: ERROR: could not find operation getProcessor on Module having supertypes: [OclAny]
java.lang.RuntimeException: ERROR: could not find operation getProcessor on Module having supertypes: [OclAny]
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.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:103)
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.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.realExec(ASMOpera tion.java:338)
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.launch(AtlLauncher.ja va:87)
at meta.custom.Transform.doATLTransformation(Transform.java:128 )
[...]

--------------020401090608050206010105
Content-Type: text/plain;
name="partial-model.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="partial-model.ecore"

<eClassifiers xsi:type="ecore:EClass" name="DeploymentDiagramEditModel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="size" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="metadata" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="initialized" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="scrolledY" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1" eType="#//ChildEditModel" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="scrolledX" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="partOfTransformation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ChildEditModel" abstract="true" eSuperTypes="#//DeploymentDiagramEditModel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stereotype" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="itemName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceLevel" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="targetConnections" upperBound="-1" eType="#//ChildEditModel"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sourceConnections" upperBound="-1" eType="#//ChildEditModel" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NodeEditModel" eSuperTypes="#//ChildEditModel"/>
<eClassifiers xsi:type="ecore:EClass" name="ComponentEditModel" eSuperTypes="#//ChildEditModel"/>
<eClassifiers xsi:type="ecore:EClass" name="NotepadEditModel" eSuperTypes="#//ChildEditModel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="note" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DependencyEditModel" eSuperTypes="#//ChildEditModel">
<eStructuralFeatures xsi:type="ecore:EReference" name="source" upperBound="-1" eType="#//ChildEditModel"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="target" upperBound="-1" eType="#//ChildEditModel"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="targetEnd" upperBound="-1" eType="#//ChildEditModel"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sourceEnd" upperBound="-1" eType="#//ChildEditModel"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connectionRouterKind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ComponentEndEditModel" eSuperTypes="#//ChildEditModel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attachSource" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>

--------------020401090608050206010105--
Re: ATL cannot find local helper? [message #77631 is a reply to message #77439] Thu, 27 March 2008 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Rene Ladan wrote:
> Hi,
>
> I have a helper getProcessor defined in an ATL module which is used in
> this same ATL module.
> Somehow ATL manages to not find the helper, resulting in
> ERROR: could not find operation getProcessor on Module having
> supertypes: [OclAny]
>
> I've moved this helper from a local ATL library into the module itself,
> which didn't help.
> The helper name was first misspelled in the library, but corrected later
> on.
> Restarting Eclipse didn't help either (maybe it flushes some cache...)
>
> I'm using ATL 2.0.0.v200803030819, EMF 2.3.2.v200802051830, and Eclipse
> 3.3.2 M20080221-1800
>
> Any ideas? (wrong types?)
>
Found it: I had a context declared in the helper, which doesn't work when
not invoking the helper from that context (e.g. via thisModule). After
removing the context, the transformation works fine.

Regards,
Rene
>
Previous Topic:[QVTO] About ordering collections
Next Topic:[ATL] Does ATL work with Eclipse 3.4 and heavyweight extensions of UML2
Goto Forum:
  


Current Time: Thu Mar 28 19:44:06 GMT 2024

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

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

Back to the top