|
Re: Problem finalizing Model with stereotypes on association ends applied [message #896117 is a reply to message #896102] |
Tue, 17 July 2012 10:06 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
Use the Java debugger; if necessary starting a nested Eclipse in debug
mode, but more easily by starting your main Eclipse with
-Xrunjdwp:server=y,transport=dt_socket,address=14143,suspend=n
so that you can then attach a second Eclipse as a debugger on the first.
Regards
Ed Willink
On 17/07/2012 10:30, Martin Benedict wrote:
> According to my question in the UML2 forum:
> http://www.eclipse.org/forums/index.php/t/367608/, I have done further
> debugging.
> To give a briefly description of my problem. I use a profile with
> several stereotypes. The stereotypes should be applied to an OUT model
> which is UML2 (http://www.eclipse.org/uml2/3.0.0/UML). I apply a
> stereotype which is applicable to UML!Property to several properties.
> Most of them are association ends and some of them are attributes of
> classes.
>
> I dispense with posting the code here, because it's in the mentioned
> UML2-forum-topic.
>
> The application on attributes work fine. But if I add the properties
> to an association as navigableOwnedEnds when finalizing the model an
> IllegalArgumentException is thrown.
>
> It appears only, if I apply my Property-stereotype to an UML!Property
> which is part of an association.
>
> The full stack trace is the following.
>
>
> org.eclipse.m2m.atl.engine.emfvm.VMException
> at
> org.eclipse.m2m.atl.engine.emfvm.adapter.UML2ModelAdapter.finalizeModel(UML2ModelAdapter.java:51)
> at
> org.eclipse.m2m.atl.engine.emfvm.lib.ExecEnv.terminated(ExecEnv.java:2557)
> at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:210)
> at
> org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.internalLaunch(EMFVMLauncher.java:170)
> at
> org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMUILauncher.launch(EMFVMUILauncher.java:46)
> at
> org.eclipse.m2m.atl.core.service.LauncherService.launch(LauncherService.java:136)
> at
> org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate.launchOrDebug(AtlLaunchConfigurationDelegate.java:300)
> at
> org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:237)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.eclipse.m2m.atl.engine.emfvm.adapter.UML2ModelAdapter.applyDelayedInvocations(UML2ModelAdapter.java:136)
> at
> org.eclipse.m2m.atl.engine.emfvm.adapter.UML2ModelAdapter.finalizeModel(UML2ModelAdapter.java:49)
> ... 12 more
> Caused by: java.lang.IllegalArgumentException:
> org.eclipse.uml2.uml.internal.impl.StereotypeImpl@a73925 (name:
> xsdElement, visibility: <unset>) (isLeaf: false, isAbstract: false)
> (isActive: false)
> at
> org.eclipse.uml2.uml.internal.operations.ElementOperations.applyStereotype(ElementOperations.java:1413)
> at
> org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereotype(ElementImpl.java:510)
> ... 17 more
>
>
> I've done some debugging. With the ATL debugger the
> applyStereotype-method is successfully called, but if it seems the atl
> script had run successful the IllegalArgumentException is thrown.
>
> Does anyone have an idea? Is this an ATL-bug? I would be delighted if
> somebody has an idea what I could do.
> Is there a way to directly debug the ATL engine?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06781 seconds