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 13:55 |
Eclipse User |
|
|
|
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 14:01 |
William Piers Messages: 301 Registered: July 2009 |
Senior Member |
|
|
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 15:52 |
Eclipse User |
|
|
|
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)
>>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 13:13:41 GMT 2024
Powered by FUDForum. Page generated in 0.03009 seconds
|