Home » Archived » M2M (model-to-model transformation) » [ATL] java.lang.ClassCastException while running transformation
[ATL] java.lang.ClassCastException while running transformation [message #7942] |
Tue, 16 January 2007 12:08 |
Eclipse User |
|
|
|
Originally posted by: milanmilanovich.yahooo.com
I created my metamodel in KM3, and then transformed it to MOF-1.4 with no
errors. But, when I run my transformation which contains only one simple
rule, ATL engine generates error:
****** BEGIN Stack Trace
exception:
java.lang.IllegalArgumentException: java.lang.ClassCastException@e579f9
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.atl.engine.vm.ClassNativeOperation.exec(ClassNativeOpera tion.java:59)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:30 9)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:9 8)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:7 0)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 3)
at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:4 9)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:209)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:154)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:136)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:117)
at
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:95)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
A.main() : ??#22 null
local variables = {self=XML2WSDL : ASMModule}
local stack = []
A.__matcher__() : ??#1 null
local variables = {self=XML2WSDL : ASMModule}
local stack = []
A.__matchInterface() : ??#38 null
local variables = {self=XML2WSDL : ASMModule, i=IN!interface}
local stack = [TransientLinkSet {}]
NativeOperation public static void
org.atl.engine.vm.nativelib.ASMTransientLink.addTargetElemen t(org.atl.engine.vm.StackFrame,org.atl.engine.vm.nativelib.A SMTransientLink,org.atl.engine.vm.nativelib.ASMString,org.at l.engine.vm.nativelib.ASMOclAny)
args = [TransientLink {rule = 'Interface', sourceElements = {i =
IN!interface}, targetElements = {}, variables = {}}, TransientLink {rule =
'Interface', sourceElements = {i = IN!interface}, targetElements = {},
variables = {}}, 'o']
****** END Stack Trace
What is the problem here ?
|
|
|
Re: [ATL] java.lang.ClassCastException while running transformation [message #8855 is a reply to message #7942] |
Tue, 16 January 2007 13:58 |
Frédéric Jouault Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hi,
It seems that the target element was not created for some reason (e.g.,
abstract class, non-existent). But this should have been reported before
the error you mention.
Are you sure there is no other reported error before the
IllegalArgumentException?
Regards,
Frédéric Jouault
Milan Milanovic wrote:
> I created my metamodel in KM3, and then transformed it to MOF-1.4 with
> no errors. But, when I run my transformation which contains only one
> simple rule, ATL engine generates error:
>
> ****** BEGIN Stack Trace
> exception: java.lang.IllegalArgumentException:
> java.lang.ClassCastException@e579f9
> at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.atl.engine.vm.ClassNativeOperation.exec(ClassNativeOpera tion.java:59)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:30 9)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
> at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:9 8)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:7 0)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 3)
> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:4 9)
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:209)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:154)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:136)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:117)
>
> at
> org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:95)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
> A.main() : ??#22 null
> local variables = {self=XML2WSDL : ASMModule}
> local stack = []
> A.__matcher__() : ??#1 null
> local variables = {self=XML2WSDL : ASMModule}
> local stack = []
> A.__matchInterface() : ??#38 null
> local variables = {self=XML2WSDL : ASMModule, i=IN!interface}
> local stack = [TransientLinkSet {}]
> NativeOperation public static void
> org.atl.engine.vm.nativelib.ASMTransientLink.addTargetElemen t(org.atl.engine.vm.StackFrame,org.atl.engine.vm.nativelib.A SMTransientLink,org.atl.engine.vm.nativelib.ASMString,org.at l.engine.vm.nativelib.ASMOclAny)
>
> args = [TransientLink {rule = 'Interface', sourceElements = {i =
> IN!interface}, targetElements = {}, variables = {}}, TransientLink {rule
> = 'Interface', sourceElements = {i = IN!interface}, targetElements = {},
> variables = {}}, 'o']
> ****** END Stack Trace
>
> What is the problem here ?
>
|
|
|
Re: [ATL] java.lang.ClassCastException while running transformation [message #8877 is a reply to message #8855] |
Tue, 16 January 2007 14:24 |
Eclipse User |
|
|
|
Originally posted by: milanmilanovich.yahooo.com
Hi Frédéric,
when I closed Eclipse, and run it again it works now. It seems to me that
problem was some custom datatypes which MOF-1.4 doesn't support.
Best regards, Milan Milanovic
--
Frédéric Jouault wrote:
> Hi,
> It seems that the target element was not created for some reason (e.g.,
> abstract class, non-existent). But this should have been reported before
> the error you mention.
> Are you sure there is no other reported error before the
> IllegalArgumentException?
> Regards,
> Frédéric Jouault
> Milan Milanovic wrote:
>> I created my metamodel in KM3, and then transformed it to MOF-1.4 with
>> no errors. But, when I run my transformation which contains only one
>> simple rule, ATL engine generates error:
>>
>> ****** BEGIN Stack Trace
>> exception: java.lang.IllegalArgumentException:
>> java.lang.ClassCastException@e579f9
>> at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at
>> org.atl.engine.vm.ClassNativeOperation.exec(ClassNativeOpera tion.java:59)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
>> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
>> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:30 9)
>> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
>> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
>> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 60)
>> at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java: 50)
>> at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:21 4)
>> at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
>> at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
>> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:9 8)
>> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:7 0)
>> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:5 3)
>> at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:4 9)
>> at
>>
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:209)
>>
>> at
>>
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:154)
>>
>> at
>>
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:136)
>>
>> at
>>
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .runAtlLauncher(AtlLaunchConfigurationDelegate.java:117)
>>
>> at
>>
org.atl.eclipse.adt.launching.AtlLaunchConfigurationDelegate .launch(AtlLaunchConfigurationDelegate.java:95)
>>
>> at
>>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
>>
>> at
>>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
>>
>> at
>>
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
>>
>> at
>> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
>> A.main() : ??#22 null
>> local variables = {self=XML2WSDL : ASMModule}
>> local stack = []
>> A.__matcher__() : ??#1 null
>> local variables = {self=XML2WSDL : ASMModule}
>> local stack = []
>> A.__matchInterface() : ??#38 null
>> local variables = {self=XML2WSDL : ASMModule, i=IN!interface}
>> local stack = [TransientLinkSet {}]
>> NativeOperation public static void
>>
org.atl.engine.vm.nativelib.ASMTransientLink.addTargetElemen t(org.atl.engine.vm.StackFrame,org.atl.engine.vm.nativelib.A SMTransientLink,org.atl.engine.vm.nativelib.ASMString,org.at l.engine.vm.nativelib.ASMOclAny)
>>
>> args = [TransientLink {rule = 'Interface', sourceElements = {i =
>> IN!interface}, targetElements = {}, variables = {}}, TransientLink {rule
>> = 'Interface', sourceElements = {i = IN!interface}, targetElements = {},
>> variables = {}}, 'o']
>> ****** END Stack Trace
>>
>> What is the problem here ?
>>
|
|
|
Re: [ATL] java.lang.ClassCastException while running transformation [message #84685 is a reply to message #8855] |
Wed, 18 June 2008 09:07 |
Eclipse User |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Frédéric Jouault wrote:
I'm experiencing a similar exception like reported in this thread.
For some reason, the rule 'copy_VLIW' lets the engine crash :
rule copy_VLIW {
from m : meta!VLIW
to m1 : meta1!VLIW(
averageClaim <- m.averageClaim,
minClaim <- m.minClaim,
maxClaim <- m.maxClaim
)
}
This is just a copier. I'm using ATL 2.0.0RC4, EMF 2.4.0, Eclipse 3.4.0.
ATL is invoked programmatically here.
>
> It seems that the target element was not created for some reason (e.g.,
> abstract class, non-existent). But this should have been reported before
> the error you mention.
I've checked the meta-model, the element in question (VLIW) is non-abstract.
>
> Are you sure there is no other reported error before the
> IllegalArgumentException?
>
Yes.
How can I get this working?
Rene
-------------------8<-----------------------8<------------------------8 <--------------------------
replace_cpu(f_cpu=MIPS_500)
SEVERE: ****** BEGIN Stack Trace
SEVERE: exception:
SEVERE: java.lang.ClassCastException@cf75dc
java.lang.IllegalArgumentException: java.lang.ClassCastException@cf75dc
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.m2m.atl.engine.vm.ClassNativeOperation.exec(Clas sNativeOperation.java:69)
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.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:108 )
at meta.custom.Variator.variate(Variator.java:694)
at meta.custom.Variator.doVariate(Variator.java:1108)
at meta.custom.MetaEditor$1.doExecute(MetaEditor.java:50)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:157)
at org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
at meta.custom.MetaEditor.run(MetaEditor.java:58)
at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:582)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:499)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:410)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3782)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3381)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2394)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 10)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:489)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
SEVERE: A.main() : ??#22 null
SEVERE: local variables = {self=replace_cpu : ASMModule}
SEVERE: local stack = []
SEVERE: A.__matcher__() : ??#55 null
SEVERE: local variables = {self=replace_cpu : ASMModule}
SEVERE: local stack = []
SEVERE: A.__matchcopy_VLIW() : ??#30 460:5-464:3
SEVERE: local variables = {m=IN!<unnamed>, self=replace_cpu : ASMModule}
SEVERE: local stack = <100 kB stack, available upon request>
SEVERE: NativeOperation public static void org.eclipse.m2m.atl.engine.vm.nativelib.ASMTransientLink.add TargetElement(org.eclipse.m2m.atl.engine.vm.StackFrame,org.e clipse.m2m.atl.engine.vm.nativelib.ASMTransientLink,org.ecli pse.m2m.atl.engine.vm.nativelib.ASMString,org.eclipse.m2m.at l.engine.vm.nativelib.ASMOclAny)
SEVERE: args = [TransientLink {rule = 'copy_VLIW', sourceElements = {m = IN!<unnamed>}, targetElements = {}, variables = {}}, TransientLink {rule = 'copy_VLIW', sourceElements = {m = IN!<unnamed>}, targetElements = {}, variables = {}}, 'm1']
SEVERE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow continuation after errors).
SEVERE: null
java.lang.RuntimeException
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:87)
at org.eclipse.m2m.atl.engine.vm.ClassNativeOperation.exec(Clas sNativeOperation.java:74)
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.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:108 )
at meta.custom.Variator.variate(Variator.java:694)
at meta.custom.Variator.doVariate(Variator.java:1108)
at meta.custom.MetaEditor$1.doExecute(MetaEditor.java:50)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:157)
at org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
at meta.custom.MetaEditor.run(MetaEditor.java:58)
at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:582)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:499)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:410)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3782)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3381)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2394)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 10)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:489)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@cf75dc
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.m2m.atl.engine.vm.ClassNativeOperation.exec(Clas sNativeOperation.java:69)
... 54 more
|
|
|
Re: [ATL] java.lang.ClassCastException while running transformation [message #84700 is a reply to message #84685] |
Wed, 18 June 2008 12:56 |
Eclipse User |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Rene Ladan wrote:
> Frédéric Jouault wrote:
>
> I'm experiencing a similar exception like reported in this thread.
> For some reason, the rule 'copy_VLIW' lets the engine crash :
>
> rule copy_VLIW {
> from m : meta!VLIW
> to m1 : meta1!VLIW(
> averageClaim <- m.averageClaim,
> minClaim <- m.minClaim,
> maxClaim <- m.maxClaim
> )
> }
>
> This is just a copier. I'm using ATL 2.0.0RC4, EMF 2.4.0, Eclipse 3.4.0.
> ATL is invoked programmatically here.
Also, could the ATL engine somehow stall when this exception occurs? If
invoked twice, the location of the ClassCastException is different from
the first time.
Rene
|
|
|
Re: [ATL] java.lang.ClassCastException while running transformation [message #84956 is a reply to message #84700] |
Mon, 23 June 2008 12:47 |
Eclipse User |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Rene Ladan wrote:
> Rene Ladan wrote:
>> Frédéric Jouault wrote:
>>
>> I'm experiencing a similar exception like reported in this thread.
>> For some reason, the rule 'copy_VLIW' lets the engine crash :
>>
>> rule copy_VLIW {
>> from m : meta!VLIW
>> to m1 : meta1!VLIW(
>> averageClaim <- m.averageClaim,
>> minClaim <- m.minClaim,
>> maxClaim <- m.maxClaim
>> )
>> }
>>
>> This is just a copier. I'm using ATL 2.0.0RC4, EMF 2.4.0, Eclipse 3.4.0.
>> ATL is invoked programmatically here.
>
Solved. There was some nasty typos involved which let the transformation
engine crash.
Rene
|
|
|
Goto Forum:
Current Time: Thu Mar 28 14:59:48 GMT 2024
Powered by FUDForum. Page generated in 0.25836 seconds
|