| 
| Problem creating LinkEndData and LinkEndDestructionData [message #472910] | Wed, 16 May 2007 05:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: francois.nizou.thalesgroup.com 
 Greeting,
 
 I've encountered an issue using UML2:
 
 I have a model, a class within, this class have a Behavior Activity and
 this activity a Node Create (or Delete) Link Action.
 The creation of two types of child within those nodes, "LinkEndData" and
 "Link End Desctruction Data" doesn't work.
 
 The log shows the following:
 
 eclipse.buildId=M20060921-0945
 java.version=1.6.0_01
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
 Command-line arguments:  -os win32 -ws win32 -arch x86
 
 Warning
 Wed May 16 11:01:07 CEST 2007
 An exception was ignored during command execution
 
 org.eclipse.emf.common.util.WrappedException: An exception was ignored
 during command execution
 at
 org.eclipse.emf.common.command.BasicCommandStack.handleError (BasicCommandStack.java:279)
 at
 org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:98)
 at
 org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction. run(StaticSelectionCommandAction.java:230)
 at  org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
 at
 org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
 at
 org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
 at
 org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
 at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
 at  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
 at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
 at  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
 at  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
 at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
 at  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
 at
 org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
 at
 org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
 at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
 at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
 at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
 at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
 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.core.launcher.Main.invokeFramework(Main.java:336 )
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)
 Caused by: java.lang.ArrayStoreException
 at  org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:188)
 at
 org.eclipse.emf.common.util.BasicEList.addAllUnique(BasicELi st.java:774)
 at
 org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddAl lUnique(NotifyingListImpl.java:494)
 at
 org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllU nique(NotifyingListImpl.java:435)
 at
 org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllU nique(NotifyingListImpl.java:396)
 at  org.eclipse.emf.common.util.BasicEList.addAll(BasicEList.jav a:688)
 at
 org.eclipse.emf.edit.command.AddCommand.doExecute(AddCommand .java:400)
 at
 org.eclipse.emf.edit.command.AbstractOverrideableCommand.exe cute(AbstractOverrideableCommand.java:128)
 at
 org.eclipse.emf.common.command.CommandWrapper.execute(Comman dWrapper.java:179)
 at
 org.eclipse.emf.edit.command.CreateChildCommand.execute(Crea teChildCommand.java:258)
 at
 org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:91)
 ... 27 more
 
 After that, the editor is in an inconsistant state and throws
 NullPointerException when selecting the Node Action.
 
 Note: The problem doesn't occur for Node Read Link Action
 
 I've tried the same operation on two differents versions of Eclipse (with
 UML 2.0.1 UML 2.0.3) and editors (UML2 editor and Acceleo Reflective
 editor) and the result remains the same.
 
 Does anyone has an idea of what is happening when using type of Action?
 
 Many thanks in advance,
 
 François
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.07199 seconds