Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AMW » An internal error occurred during: "Launching...
An internal error occurred during: "Launching... [message #469584] Wed, 18 February 2009 18:04 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070609040503030402010102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><big>Hi Marcos, I believe I'm close to success with using the
AOM use case with my models and rules, but I need
help once again.<br>
I've got the following code:<br>
</big></small><font face="Courier New, Courier, monospace"><small><br>
<font color="#33ccff">abstract rule newAction {<br>
&nbsp;&nbsp; &nbsp;from <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;attr : AMW!Action
(attr.getReferredElement().oclIsKindOf(SecureUML!Action))<br >
&nbsp;&nbsp; &nbsp;to<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;out : iBuilder_plus_SecureUML_Flat_MM!Action (&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ...&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;)<br>
}<br>
&nbsp;<br>
rule newCompositeAction extends newAction {<br>
from<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; attr : AMW!Action (&nbsp;&nbsp;&nbsp;
attr.getReferredElement().oclIsKindOf(SecureUML!CompositeAct ion) and <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; not
SecureUML!CompositeAction.getInstanceById('advice',attr.elem ent.ref).subordinatedAction.oclIsUndefined()&nbsp;&n bsp;&nbsp;
&nbsp;&nbsp;&nbsp; )<br>
to<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;out : iBuilder_plus_SecureUML_Flat_MM!CompositeAction (&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; --CompositeAction extends abstract
class 'Action'<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;subordinatedAction &lt;-
attr.getSubordinatedAction&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp; --THIS IS THE PROBLEMATIC
LINE, I GUESS<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;<br>
}&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
helper context AMW!Action def: getSubordinatedAction :
Set(SecureUML!Action) =
self.getReferredElement().subordinatedAction;&nbsp; --CODE CAUSING THE ERROR</font></small></font><br>
<br>
which works perfectly well with a simple model.<br>
However, when feeding the transformation with a more elaborated model,
it throws the attached errors (console and error log).<br>
I've googled around and found nothing that helps me. Which should be
the reason for such errors?.<br>
The input models validate correctly, and the attributes are set and
check for not-null before referring to them.<br>
Any pointers would be greatly appreciated.<br>
Best regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Juan Pedro<br>
</body>
</html>

--------------070609040503030402010102
Content-Type: text/plain;
name="Error_Console.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Error_Console.txt"

GRAVE: ****** BEGIN Stack Trace
GRAVE: exception:
GRAVE: null
java.lang.reflect.InvocationTargetException
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.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.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:683)
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:335)
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:167)
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 org.eclipse.gmt.weaver.transformation.util.TransformationUti l.executeTransfo(TransformationUtil.java:103)
at org.eclipse.gmt.weaver.transformation.panel.TransformationWe avingPanel$TAction.run(TransformationWeavingPanel.java:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
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:386)
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)
Caused by: java.lang.NullPointerException
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.getMe taobject(ASMEMFModelElement.java:422)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.<init >(ASMEMFModelElement.java:557)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.<init>(ASMAMWModelElement.java:43)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModel.getASMModelElemen t(ASMAMWModel.java:361)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getModelEl ement(ASMAMWModelElement.java:159)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(ASMAMWModelElement.java:194)
... 52 more
GRAVE: A.main() : ??#22 null
GRAVE: local variables = {self=NameEqualitybyType : ASMModule}
GRAVE: local stack = []
GRAVE: A.__matcher__() : ??#1 null
GRAVE: local variables = {self=NameEqualitybyType : ASMModule}
GRAVE: local stack = []
GRAVE: A.__matchprClass() : ??#31 37:53-37:83
GRAVE: local variables = {left=left!UIComboBox, mmw=IN!UIComboBox_EAnnotation, self=NameEqualitybyType : ASMModule}
GRAVE: local stack = [TransientLinkSet {}, TransientLink {rule = 'prClass', sourceElements = {mmw = IN!UIComboBox_EAnnotation}, targetElements = {}, variables = {left = left!UIComboBox}}, TransientLink {rule = 'prClass', sourceElements = {mmw = IN!UIComboBox_EAnnotation}, targetElements = {}, variables = {left = left!UIComboBox}}, 'right']
GRAVE: NativeOperation public static org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(org.eclipse.m2m.atl.engine.vm.StackFrame,org.eclips e.m2m.atl.drivers.emf4atl.ASMEMFModelElement)
GRAVE: args = [IN!EAnnotation]
GRAVE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow continuation after errors).
GRAVE: 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:77)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:683)
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:335)
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:167)
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 org.eclipse.gmt.weaver.transformation.util.TransformationUti l.executeTransfo(TransformationUtil.java:103)
at org.eclipse.gmt.weaver.transformation.panel.TransformationWe avingPanel$TAction.run(TransformationWeavingPanel.java:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
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:386)
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)
Caused by: java.lang.reflect.InvocationTargetException
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.m2m.atl.engine.vm.ClassNativeOperation.exec(Clas sNativeOperation.java:69)
... 47 more
Caused by: java.lang.NullPointerException
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.getMe taobject(ASMEMFModelElement.java:422)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.<init >(ASMEMFModelElement.java:557)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.<init>(ASMAMWModelElement.java:43)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModel.getASMModelElemen t(ASMAMWModel.java:361)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getModelEl ement(ASMAMWModelElement.java:159)
at org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(ASMAMWModelElement.java:194)
... 52 more

--------------070609040503030402010102
Content-Type: text/plain;
name="error_log.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="error_log.txt"

An internal error occurred during: "Launching WeavingConCopy4_modelosViejos".

java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eURIFragmentSegm ent(BasicEObjectImpl.java:294)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIFragm ent(ResourceImpl.java:671)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.getURIFragmen t(XMLResourceImpl.java:422)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment( XMLHelperImpl.java:718)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getIDREF(XMLHel perImpl.java:753)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveIDRefMany(XML SaveImpl.java:1985)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1337)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2667)
at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:592)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:256)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1344)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:986)
at org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:148)
at org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:67)
at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:372)
at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:463)
at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:435)
at org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:42)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:880)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1083)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

--------------070609040503030402010102--
Re: An internal error occurred during: "Launching... [message #469851 is a reply to message #469584] Wed, 18 February 2009 18:31 Go to previous messageGo to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Just for the record, I also tried: <br>
<br>
<small><font color="#33ccff" face="Courier New, Courier, monospace">subordinatedAction
&lt;- attr.getSubordinatedAction.-&gt;collect(e |
thisModule.resolveTemp(e, 'out') )-&gt;flatten()</font></small><br>
<br>
(which I don't think it's neccesary here), and got a different error,
but an error anyhow.<br>
<br>
<br>
<br>
<br>
<br>
Juan Pedro Silva escribi&oacute;:
<blockquote cite="mid:gnhija$nba$1@build.eclipse.org" type="cite"><small><big>Hi
Marcos, I believe I'm close to success with using the
AOM use case with my models and rules, but I need
help once again.<br>
I've got the following code:<br>
</big></small><font face="Courier New, Courier, monospace"><small><br>
<font color="#33ccff">abstract rule newAction {<br>
&nbsp;&nbsp; &nbsp;from <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;attr : AMW!Action
(attr.getReferredElement().oclIsKindOf(SecureUML!Action))<br >
&nbsp;&nbsp; &nbsp;to<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;out : iBuilder_plus_SecureUML_Flat_MM!Action (&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ...&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;)<br>
}<br>
&nbsp;<br>
rule newCompositeAction extends newAction {<br>
from<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; attr : AMW!Action (&nbsp;&nbsp;&nbsp;
attr.getReferredElement().oclIsKindOf(SecureUML!CompositeAct ion) and <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; not
SecureUML!CompositeAction.getInstanceById('advice',attr.elem ent.ref).subordinatedAction.oclIsUndefined()&nbsp;&n bsp;&nbsp;
&nbsp;&nbsp;&nbsp; )<br>
to<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;out : iBuilder_plus_SecureUML_Flat_MM!CompositeAction (&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; --CompositeAction extends abstract
class 'Action'<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;subordinatedAction &lt;-
attr.getSubordinatedAction&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp; --THIS IS THE PROBLEMATIC
LINE, I GUESS<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;<br>
}&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
helper context AMW!Action def: getSubordinatedAction :
Set(SecureUML!Action) =
self.getReferredElement().subordinatedAction;&nbsp; --CODE CAUSING THE ERROR</font></small></font><br>
<br>
which works perfectly well with a simple model.<br>
However, when feeding the transformation with a more elaborated model,
it throws the attached errors (console and error log).<br>
I've googled around and found nothing that helps me. Which should be
the reason for such errors?.<br>
The input models validate correctly, and the attributes are set and
check for not-null before referring to them.<br>
Any pointers would be greatly appreciated.<br>
Best regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Juan Pedro<br>
</blockquote>
</body>
</html>
Re: An internal error occurred during: "Launching... [message #469852 is a reply to message #469851] Fri, 20 February 2009 16:17 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 84
Registered: July 2009
Member
Hi,

are you sure you sent the right error console? It seems the same as you
had when executing the NameSimilarityByType transformation.

The log files doesn't say too much to me: it seems there is an
incompatibility over the identifiers of the model elements. More
information about the models would help,


Marcos.
Re: An internal error occurred during: "Launching... [message #469853 is a reply to message #469852] Mon, 23 February 2009 13:57 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Marcos, the problem persists with the new clean metamodels (found out
how to properly define my datatypes). I've fixed that already.
Below you can see the console report.
Any ideas?.
Regards,
Juan Pedro

Marcos Didonet Del Fabro escribió:
> Hi,
>
> are you sure you sent the right error console? It seems the same as
> you had when executing the NameSimilarityByType transformation.
>
> The log files doesn't say too much to me: it seems there is an
> incompatibility over the identifiers of the model elements. More
> information about the models would help,
>
>
> Marcos.
>

GRAVE: ****** BEGIN Stack Trace
GRAVE: exception:
GRAVE: null
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor91.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.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:683)
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.ASMExecEnv.getHelperValue(ASME xecEnv.java:322)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.getHelper( ASMOclAny.java:168)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.get(A SMEMFModelElement.java:138)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:298)
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:335)
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:167)
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
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:361)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:463)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:435)
at
org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:42)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:880)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1083)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NullPointerException
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.getMe taobject(ASMEMFModelElement.java:422)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.<init >(ASMEMFModelElement.java:557)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.getASMModelE lement(ASMEMFModel.java:76)
at
org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getModelEl ement(ASMAMWModelElement.java:159)
at
org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(ASMAMWModelElement.java:194)
... 35 more
GRAVE: A.main() : ??#62 null
GRAVE: local variables = {self=WJP4 : ASMModule}
GRAVE: local stack = []
GRAVE: A.__exec__() : ??#28 null
GRAVE: local variables = {e=TransientLink {rule =
'newCompositeAction', sourceElements = {attr =
IN!SystemUsersFullControl}, targetElements = {out =
OUT!FuncionarioSystemUsersFullControl}, variables = {}}, self=WJP4 :
ASMModule}
GRAVE: local stack = []
GRAVE: A.__applynewCompositeAction(1 : NTransientLink;) : ??#29 28:39-28:58
GRAVE: local variables = {out=OUT!FuncionarioSystemUsersFullControl,
attr=IN!SystemUsersFullControl, link=TransientLink {rule =
'newCompositeAction', sourceElements = {attr =
IN!SystemUsersFullControl}, targetElements = {out =
OUT!FuncionarioSystemUsersFullControl}, variables = {}}, self=WJP4 :
ASMModule}
GRAVE: local stack = [OUT!FuncionarioSystemUsersFullControl,
OUT!FuncionarioSystemUsersFullControl, WJP4 : ASMModule]
GRAVE: MAMW!Action;.__initgetPermissions() : ??#1 16:77-16:102
GRAVE: local variables = {self=IN!SystemUsersFullControl}
GRAVE: local stack = []
GRAVE: NativeOperation public static
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(org.eclipse.m2m.atl.engine.vm.StackFrame,org.eclips e.m2m.atl.drivers.emf4atl.ASMEMFModelElement)
GRAVE: args = [IN!SystemUsersFullControl]
GRAVE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to
allow continuation after errors).
GRAVE: 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:77)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.invok e(ASMEMFModelElement.java:683)
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.ASMExecEnv.getHelperValue(ASME xecEnv.java:322)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.getHelper( ASMOclAny.java:168)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.get(A SMEMFModelElement.java:138)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:298)
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:335)
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:167)
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
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:361)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:463)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:435)
at
org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:42)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:880)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1083)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor91.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)
... 31 more
Caused by: java.lang.NullPointerException
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.getMe taobject(ASMEMFModelElement.java:422)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.<init >(ASMEMFModelElement.java:557)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.getASMModelE lement(ASMEMFModel.java:76)
at
org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getModelEl ement(ASMAMWModelElement.java:159)
at
org.eclipse.gmt.weaver.amw4atl.ASMAMWModelElement.getReferre dElement(ASMAMWModelElement.java:194)
... 35 more
Previous Topic:ERROR: could not find operation getReferredElement
Next Topic:cannot compile sources
Goto Forum:
  


Current Time: Tue Apr 23 07:43:43 GMT 2024

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

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

Back to the top