Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Can't find Java operation with variable arity
[ATL] Can't find Java operation with variable arity [message #86295] Thu, 10 July 2008 09:55 Go to next message
Eclipse UserFriend
Originally posted by: apicard.tampabay.rr.com

Hi,

We have many generic methods in our EObject extension. All is well to
invoke those methods from the ATL transformation in general, but we have
some methods of the form:

public EObject runLibMethodObject(String extension, String methodName,
Object... args);

It seems that when we are dealing with a variable arity method that ATL
can't correctly handle the variable list of arguments

Please advise

Cheers,
Alain


Here is the error reported:
INFO: Dumping ASM to C:/eclipse/workspace/ATLTransformation/STM2KDM.asm
SEVERE: ****** BEGIN Stack Trace
SEVERE: message: ERROR: could not find operation runLibMethodList on
STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType, OclAny]
(including Java operations)
SEVERE: A.main() : ??#26 null
SEVERE: local variables = {self=STM2KDM : ASMModule}
SEVERE: local stack = []
SEVERE: A.__exec__() : ??#38 null
SEVERE: local variables = {e=TransientLink {rule = 'CreateClasses',
sourceElements = {stmConcreteNode = IN!<unnamed>}, targetElements =
{kdmClass = OUT!<notnamedyet>}, variables = {}}, self=STM2KDM : ASMModule}
SEVERE: local stack = []
SEVERE: A.__applyCreateClasses(1 : NTransientLink;) : ??#15 58:12-58:90
SEVERE: local variables = {kdmClass=OUT!<notnamedyet>,
stmConcreteNode=IN!<unnamed>, link=TransientLink {rule =
'CreateClasses', sourceElements = {stmConcreteNode = IN!<unnamed>},
targetElements = {kdmClass = OUT!<notnamedyet>}, variables = {}},
self=STM2KDM : ASMModule}
SEVERE: local stack = [OUT!<notnamedyet>, OUT!<notnamedyet>, STM2KDM :
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 runLibMethodList on
STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType, OclAny]
(including Java operations)
java.lang.RuntimeException: ERROR: could not find operation
runLibMethodList on STM!StConcreteNode having supertypes:
[STM!StBaseNode, 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)
Re: [ATL] Can't find Java operation with variable arity [message #86661 is a reply to message #86295] Thu, 17 July 2008 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

At this time ATL doesn't support variable arity methods. Could you
please report a bug ?

Thanks in advance,

William

Alain Picard a écrit :
> Hi,
>
> We have many generic methods in our EObject extension. All is well to
> invoke those methods from the ATL transformation in general, but we have
> some methods of the form:
>
> public EObject runLibMethodObject(String extension, String methodName,
> Object... args);
>
> It seems that when we are dealing with a variable arity method that ATL
> can't correctly handle the variable list of arguments
>
> Please advise
>
> Cheers,
> Alain
>
>
> Here is the error reported:
> INFO: Dumping ASM to C:/eclipse/workspace/ATLTransformation/STM2KDM.asm
> SEVERE: ****** BEGIN Stack Trace
> SEVERE: message: ERROR: could not find operation runLibMethodList on
> STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType, OclAny]
> (including Java operations)
> SEVERE: A.main() : ??#26 null
> SEVERE: local variables = {self=STM2KDM : ASMModule}
> SEVERE: local stack = []
> SEVERE: A.__exec__() : ??#38 null
> SEVERE: local variables = {e=TransientLink {rule = 'CreateClasses',
> sourceElements = {stmConcreteNode = IN!<unnamed>}, targetElements =
> {kdmClass = OUT!<notnamedyet>}, variables = {}}, self=STM2KDM : ASMModule}
> SEVERE: local stack = []
> SEVERE: A.__applyCreateClasses(1 : NTransientLink;) : ??#15 58:12-58:90
> SEVERE: local variables = {kdmClass=OUT!<notnamedyet>,
> stmConcreteNode=IN!<unnamed>, link=TransientLink {rule =
> 'CreateClasses', sourceElements = {stmConcreteNode = IN!<unnamed>},
> targetElements = {kdmClass = OUT!<notnamedyet>}, variables = {}},
> self=STM2KDM : ASMModule}
> SEVERE: local stack = [OUT!<notnamedyet>, OUT!<notnamedyet>, STM2KDM
> : 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 runLibMethodList on
> STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType, OclAny]
> (including Java operations)
> java.lang.RuntimeException: ERROR: could not find operation
> runLibMethodList on STM!StConcreteNode having supertypes:
> [STM!StBaseNode, 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)
>
Re: [ATL] Can't find Java operation with variable arity [message #86725 is a reply to message #86661] Fri, 18 July 2008 11:52 Go to previous message
Eclipse UserFriend
Originally posted by: apicard.tampabay.rr.com

Will do.

Thanks


William Piers wrote:
> Hello,
>
> At this time ATL doesn't support variable arity methods. Could you
> please report a bug ?
>
> Thanks in advance,
>
> William
>
> Alain Picard a écrit :
>> Hi,
>>
>> We have many generic methods in our EObject extension. All is well to
>> invoke those methods from the ATL transformation in general, but we
>> have some methods of the form:
>>
>> public EObject runLibMethodObject(String extension, String methodName,
>> Object... args);
>>
>> It seems that when we are dealing with a variable arity method that
>> ATL can't correctly handle the variable list of arguments
>>
>> Please advise
>>
>> Cheers,
>> Alain
>>
>>
>> Here is the error reported:
>> INFO: Dumping ASM to C:/eclipse/workspace/ATLTransformation/STM2KDM.asm
>> SEVERE: ****** BEGIN Stack Trace
>> SEVERE: message: ERROR: could not find operation runLibMethodList
>> on STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType,
>> OclAny] (including Java operations)
>> SEVERE: A.main() : ??#26 null
>> SEVERE: local variables = {self=STM2KDM : ASMModule}
>> SEVERE: local stack = []
>> SEVERE: A.__exec__() : ??#38 null
>> SEVERE: local variables = {e=TransientLink {rule =
>> 'CreateClasses', sourceElements = {stmConcreteNode = IN!<unnamed>},
>> targetElements = {kdmClass = OUT!<notnamedyet>}, variables = {}},
>> self=STM2KDM : ASMModule}
>> SEVERE: local stack = []
>> SEVERE: A.__applyCreateClasses(1 : NTransientLink;) : ??#15 58:12-58:90
>> SEVERE: local variables = {kdmClass=OUT!<notnamedyet>,
>> stmConcreteNode=IN!<unnamed>, link=TransientLink {rule =
>> 'CreateClasses', sourceElements = {stmConcreteNode = IN!<unnamed>},
>> targetElements = {kdmClass = OUT!<notnamedyet>}, variables = {}},
>> self=STM2KDM : ASMModule}
>> SEVERE: local stack = [OUT!<notnamedyet>, OUT!<notnamedyet>,
>> STM2KDM : 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 runLibMethodList on
>> STM!StConcreteNode having supertypes: [STM!StBaseNode, OclType,
>> OclAny] (including Java operations)
>> java.lang.RuntimeException: ERROR: could not find operation
>> runLibMethodList on STM!StConcreteNode having supertypes:
>> [STM!StBaseNode, 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)
>>
Previous Topic:[ATL] Transformation of UML objects
Next Topic:[ATL] Create New ATL File wizard
Goto Forum:
  


Current Time: Wed Jul 23 03:59:38 EDT 2025

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

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

Back to the top