Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » NullPointerException when copy/paste an element in diagram(NullPointerException in getPasteToolsInHierarchy() method)
NullPointerException when copy/paste an element in diagram [message #1717002] Wed, 09 December 2015 14:42 Go to next message
Thanh Liem PHAN is currently offline Thanh Liem PHANFriend
Messages: 8
Registered: November 2015
Junior Member
I've got a NullPointerException when i tried to copy/paste an element (bloc or port) in sirius diagram. However it seems that the copy/paste is still success, all the info of the copied element are well cloned.

Have you encounter the same error message like the below one?

Quote:

!ENTRY org.eclipse.gmf.runtime.common.ui.action 2 6 2015-12-09 15:23:19.121
!MESSAGE null
!STACK 0
java.lang.NullPointerException
at org.eclipse.sirius.diagram.business.api.query.DiagramElementMappingQuery.getPasteToolsInHierarchy(DiagramElementMappingQuery.java:156)
at org.eclipse.sirius.diagram.business.api.query.DiagramElementMappingQuery.getAllPasteTools(DiagramElementMappingQuery.java:168)
at org.eclipse.sirius.diagram.business.api.query.DiagramElementMappingQuery.getAllPasteTools(DiagramElementMappingQuery.java:175)
at org.eclipse.sirius.diagram.business.internal.query.PasteTargetQuery.getAllPasteTools(PasteTargetQuery.java:95)
at org.eclipse.sirius.diagram.business.internal.query.PasteTargetQuery.getPasteToolsOnActivatedLayers(PasteTargetQuery.java:79)
at org.eclipse.sirius.diagram.business.internal.query.PasteTargetQuery.getAvailablePasteTools(PasteTargetQuery.java:65)
at org.eclipse.sirius.diagram.ui.tools.internal.clipboard.SiriusClipboardGlobalActionHandler.fillCompositePasteCommand(SiriusClipboardGlobalActionHandler.java:368)
at org.eclipse.sirius.diagram.ui.tools.internal.clipboard.SiriusClipboardGlobalActionHandler.fillCompositePasteCommand(SiriusClipboardGlobalActionHandler.java:358)
at org.eclipse.sirius.diagram.ui.tools.internal.clipboard.SiriusClipboardGlobalActionHandler.getPasteCommand(SiriusClipboardGlobalActionHandler.java:306)
at org.eclipse.sirius.diagram.ui.tools.internal.clipboard.SiriusClipboardGlobalActionHandler.canPaste(SiriusClipboardGlobalActionHandler.java:146)
at org.eclipse.sirius.diagram.ui.tools.internal.clipboard.SiriusClipboardGlobalActionHandler.canHandle(SiriusClipboardGlobalActionHandler.java:126)
at org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction.refresh(GlobalAction.java:161)
at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.selectionChanged(AbstractActionHandler.java:387)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.flushSelectionEvents(DiagramGraphicalViewer.java:256)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$1.run(DiagramGraphicalViewer.java:234)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3772)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at com.all4tec.sa.core.root.Application.start(Application.java:99)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

Re: NullPointerException when copy/paste an element in diagram [message #1717481 is a reply to message #1717002] Mon, 14 December 2015 10:18 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 253
Registered: August 2010
Senior Member
Hello,

Thanks for the feedback. Can you raise a buzilla about this issue?
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius

Regards,

Florian


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Hide pin/unpin tool in palette
Next Topic:Delete/Recconect Edge when there are multiple edges
Goto Forum:
  


Current Time: Mon Jan 25 05:23:49 GMT 2021

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

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

Back to the top