Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » NPE in XXXDiagramEditor.getEditingDomain after migrating to GMF 2.3
NPE in XXXDiagramEditor.getEditingDomain after migrating to GMF 2.3 [message #536883] Mon, 31 May 2010 11:33
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

after migrating from Eclipse 3.5.2 to Eclipse 3.6RC2 and so on GMF 2.3RC2, I encountered a NPE in XXXDiagramEditor.getEditingDomain

The stacktrace:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4083)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.bonitasoft.studio.application.BonitaStudioApplication.start(BonitaStudioApplication.java:48)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.NullPointerException
	at org.bonitasoft.studio.model.process.diagram.part.XXXDiagramEditor.getEditingDomain(XXXDiagramEditor.java:377)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor$1.getEditingDomain(DiagramEditor.java:396)
	at org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection.setInput(AbstractModelerPropertySection.java:126)
	at org.bonitasoft.studio.common.properties.ExtensibleGridPropertySection.setInput(ExtensibleGridPropertySection.java:161)
	at org.bonitasoft.studio.common.properties.ExtensibleGridPropertySection$1.selectionChanged(ExtensibleGridPropertySection.java:64)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.flushSelectionEvents(DiagramGraphicalViewer.java:269)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$2.run(DiagramGraphicalViewer.java:282)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	... 23 more


This append when I close the editor.
I notice that the getDocumentProvider() method return null.

Any idea what is the cause?
How to solve it without editing generation template?
What has changed in Lifecycle that can produce this issue?

Regards



Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team

[Updated on: Mon, 31 May 2010 11:44]

Report message to a moderator

Previous Topic:product creation
Next Topic:Using GMF and dynamic EMF with EEnumLiteral
Goto Forum:
  


Current Time: Wed May 22 06:24:02 GMT 2024

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

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

Back to the top