Skip to main content



      Home
Home » Modeling » Graphiti » Error when opening the diagram(While Opening Graphiti Diagram,error No diagram found is thrown)
Error when opening the diagram [message #1754344] Thu, 16 February 2017 09:46 Go to next message
Eclipse UserFriend
After creating a new workspace in eclipse and then opening a graphiti diagram or graphiti xpdl which is converted into graphiti diagram, the diagram opens fine.

But after opening for couple of times and then re-opening the same diagram, the following error is thrown.
To resolve this issue I have to create a new workspace and then open the diagram in the new workspace.So I end up creating multiple workspaces to work with the diagram when the diagram doesn't open in one workspace.

Please refer to the screenshot of the error thrown.



  • Attachment: workspace.jpg
    (Size: 70.20KB, Downloaded 272 times)

[Updated on: Thu, 16 February 2017 11:28] by Moderator

Re: Error when opening the diagram [message #1754382 is a reply to message #1754344] Fri, 17 February 2017 02:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

could you please provide the stacktrace for this error? There should be something for this in the Eclipse error log.

Thanks,
Michael
Re: Error when opening the diagram [message #1754445 is a reply to message #1754382] Fri, 17 February 2017 16:03 Go to previous messageGo to next message
Eclipse UserFriend
Here is the error log

java.lang.NullPointerException
at org.eclipse.gef.ui.parts.GraphicalEditor.getCommandStack(GraphicalEditor.java:252)
at org.eclipse.gef.ui.parts.GraphicalEditor.getAdapter(GraphicalEditor.java:228)
at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.getAdapter(GraphicalEditorWithFlyoutPalette.java:110)
at org.eclipse.graphiti.ui.editor.DiagramEditor.getAdapter(DiagramEditor.java:493)
at org.eclipse.ui.internal.views.ViewsPlugin.getAdapter(ViewsPlugin.java:104)
at org.eclipse.ui.views.properties.PropertySheet.doCreatePage(PropertySheet.java:200)
at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:422)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:768)
at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:296)
at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1076)
at org.eclipse.ui.internal.WorkbenchPage$15.run(WorkbenchPage.java:4894)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4891)
at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:4870)
at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:202)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:245)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:242)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:711)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:639)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3242)
at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3080)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
at org.eclipse.ui.navigator.CommonNavigatorManager$2.open(CommonNavigatorManager.java:191)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:854)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:449)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1275)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
Re: Error when opening the diagram [message #1754570 is a reply to message #1754445] Mon, 20 February 2017 06:56 Go to previous message
Eclipse UserFriend
Hi,

this looks as if the GraphicalEditor instance has not been initialized correctly. Please ensure that the method init(IEditorSite site, IEditorInput input) in Graphiti's DiagramEditor has been called before you initiate anything on its palette.

HTH,
Michael
Previous Topic:Custom Editor
Next Topic:Wrong Figure order for PictogramElements
Goto Forum:
  


Current Time: Tue May 20 18:45:35 EDT 2025

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

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

Back to the top