Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317941 - NPE in Diagnostician.validate when trying toi generate code
Summary: NPE in Diagnostician.validate when trying toi generate code
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: gmf.generation-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 05:58 EDT by Aurelien Pupier CLA
Modified: 2010-07-19 22:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Pupier CLA 2010-06-25 05:58:10 EDT
Build Identifier: 20100617-1415

I can't generate anymore the code from the gmfgen, in log:

!ENTRY org.eclipse.ui 4 0 2010-06-25 11:54:02.600
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:114)
	at org.eclipse.gmf.internal.bridge.transform.ValidationHelper.validate(ValidationHelper.java:288)
	at org.eclipse.gmf.internal.bridge.transform.ValidationHelper.validate(ValidationHelper.java:320)
	at org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation.validateGenModel(ExecuteTemplatesOperation.java:263)
	at org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation.run(ExecuteTemplatesOperation.java:106)
	at org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesAction.run(ExecuteTemplatesAction.java:47)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	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.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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)


Reproducible: Sometimes
Comment 1 Aurelien Pupier CLA 2010-06-25 06:00:58 EDT
Ok, after a restart it works again but it is quite strange.
Comment 2 Aurelien Pupier CLA 2010-07-16 08:30:17 EDT
(In reply to comment #1)
> Ok, after a restart it works again but it is quite strange.

It happens again.

The validation is right. (Right click->Validate on the file in package explorer and in the gmfgen editor)

I try to restart, to do Project-> clean... but there is still the error.

I set it as major, As I can't anymore generate diagram code.
Comment 3 Aurelien Pupier CLA 2010-07-16 08:56:38 EDT
I remove the XTend nature on the project containing the .gmfgen, restart and it works again.
But I reset th eXTend nature and it works. So not sure to be related.
Comment 4 Eclipse Webmaster CLA 2010-07-19 22:19:17 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug