Community
Participate
Working Groups
Build Identifier: M20110909-1335 Installed sersion of xtext: Xtext SDK 2.1.0.v201111010612 Having created a new xtext project using the wizard or created one of the 3 xtext examples. Always when invoking the action "Generate Xtext Artefacts" in context of the xtext grammar file, I get an unhandeled event loop exception: java.lang.NullPointerException at org.eclipse.xtext.xtext.launcher.WorkflowLaunchUtils.runWorkflow(WorkflowLaunchUtils.java:92) at org.eclipse.xtext.xtext.launcher.GenerateArtifactsLaunchShortcut.launch(GenerateArtifactsLaunchShortcut.java:25) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:434) at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java:73) at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAction.java:121) 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:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 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:344) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) Nothing has been modified on elements of the newly created xtext project or the xtext example project before running "Generate Xtext Artefacts". Reproducible: Always Steps to Reproduce: 1. Create new Xtext project or use one of the examples shipped with Xtext 2. Run "Generate Xtext Artefacts"
I can't reproduce this one. Please provide some more information, e.g. which platform do you use or which plugins are installed.
Created attachment 206701 [details] Platform description including Information about which Features and Plugins are installed
Its a win 32 maching using Eclipse SDK Version: 3.7.1 eclipse.buildId=M20110909-1335 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86 See the attatched file about the running Eclipse platform for more detailed information including installed features and plugins. Regards, Helko
I tested this on a win32 box with a fresh eclipse and a newly created xtext project. Worked like a charm. I'd assume your launch config is bogus for one reason or another. Please reopen if you can provide more information on this.
Hi again, I've downloaded a fresh Eclipse Indigo 3.7.1. Than, I've installes Xtext 2.1.0 using the All In One Update Site Archive for Xtext 2.1.0 (from here http://www.eclipse.org/modeling/tmf/downloads/) For this, I have to face the dependency from Xtext 2.1.0 to the MWE2 2.1.0 plugin. Thus, I've downloaded the All In One update Site for MWE2 2.1.0 (from here http://www.eclipse.org/modeling/emft/downloads/?project=mwe) With the All In One update Sites mentioned above , the installation of Xtext 2.1.0 runs without problems. After restarting Eclipse after the installation process has finished, I've created a new simple Xtext Project and tried to run "generate Xtext Artefacts". I've got the same error. Unhandeled Event loop and NullPointerException as stated at the beginning of this bug report. It might be of interesst, that the problems view of Eclipse states: "Description Resource Path Location Type Bundle 'org.eclipse.emf.mwe2.launch' cannot be resolved MANIFEST.MF /org.xtext.example.mydsl/META-INF line 15 Plug-in Problem " Could it be, that something of the MWE2 stuff is missing? I cannot find the plugin "org.eclipse.emf.mwe2.launch" in my Eclipse configuration. But I've got no missing dependency messages during the installation of Xtext 2.1.0. Regards, Helko
After i also installes the Features from the All In One Update Site of "MWE2 Language", the workflow to "generate Xtext Artefacts" starts well. I think, there is a missing plugin dependency in the installation process of Xtext 2.1.0?
(In reply to comment #6) > After i also installes the Features from the All In One Update Site of "MWE2 > Language", the workflow to "generate Xtext Artefacts" starts well. I think, > there is a missing plugin dependency in the installation process of Xtext > 2.1.0? (In reply to comment #5) > Hi again, > > I've downloaded a fresh Eclipse Indigo 3.7.1. > > Than, I've installes Xtext 2.1.0 using the All In One Update Site Archive for > Xtext 2.1.0 (from here http://www.eclipse.org/modeling/tmf/downloads/) > > For this, I have to face the dependency from Xtext 2.1.0 to the MWE2 2.1.0 > plugin. Thus, I've downloaded the All In One update Site for MWE2 2.1.0 (from > here http://www.eclipse.org/modeling/emft/downloads/?project=mwe) > > With the All In One update Sites mentioned above , the installation of Xtext > 2.1.0 runs without problems. > > After restarting Eclipse after the installation process has finished, I've > created a new simple Xtext Project and tried to run "generate Xtext Artefacts". > > I've got the same error. Unhandeled Event loop and NullPointerException as > stated at the beginning of this bug report. > > It might be of interesst, that the problems view of Eclipse states: > "Description Resource Path Location Type > Bundle 'org.eclipse.emf.mwe2.launch' cannot be resolved MANIFEST.MF > /org.xtext.example.mydsl/META-INF line 15 Plug-in Problem > " > > Could it be, that something of the MWE2 stuff is missing? > I cannot find the plugin "org.eclipse.emf.mwe2.launch" in my Eclipse > configuration. But I've got no missing dependency messages during the > installation of Xtext 2.1.0. > > Regards, Helko All In One update Site for MWE2 2.1.0 means all MWE2 bundles and feature. You need MWE2 Language in order to edit/launch MWE2 workflows
OK, but to avoid runtime problems it would be nice, if the Xtext 2.1.0 process would demand MWE2 Language stuff. Thanks and regards, Helko
I've meant "Xtext 2.1.0 installation process" before
Your comment was: (In reply to comment #6) > After i also installes the Features from the All In One Update Site of "MWE2 > Language", the workflow to "generate Xtext Artefacts" starts well. I think, > there is a missing plugin dependency in the installation process of Xtext > 2.1.0? (In reply to comment #8) > OK, but to avoid runtime problems it would be nice, if the Xtext 2.1.0 process > would demand MWE2 Language stuff. > > Thanks and regards, Helko Hello Heiko, Xtext has a bunch of _optional_ dependencies to MWE2 and MWE2 Language. This means the installation will not (and should not) fail if there are any MWE2 / MWE2 Language repositories available. And again also Xtext All in one Updatesite means all Xtext features and bundles, but not the transitive dependencies. The best way is to use our online composite update site (Xtext,Xtpand,MWE2, MWE2 Language): Releases: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ Milestones: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/milestones/ Nightly: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/nightly/
OK, good to know. First, I used the online release Xtext Update Site (http://download.eclipse.org/modeling/tmf/updates/releases/). But than, I've got a dependency error at the installation process, that MWE2 plugins are missing. Thus I also installed the MWE2 plugins mentioned above. The installation has finished, but the generation of artefacts went wrong. That was the initial reason for this bug report. For me as an end user, it is not of interest what dependencies are mandatory or optional so that I can run "Generate XText Artefacts". OK, using your composite Update Site you have mentioned before would avoid searching for the MWE2 stuff separately. But I think, that the problem I've had also holds when using your composite Update Site. That would be the case, if someone does not select the MWE2 Language. Thanks again for your help, regards, Helko
(In reply to comment #11) > OK, using your composite Update Site you have mentioned before would avoid > searching for the MWE2 stuff separately. But I think, that the problem I've had > also holds when using your composite Update Site. That would be the case, if > someone does not select the MWE2 Language. No, that not true. As I already said Xtext has some optional dependencies to MWE2 Language. This dependencies will be automatically resolved by p2 if there are MWE2 Language bundles available and this is the case when our composite update site is used. Unfortunately die can't set this dependencies to required because of a circular dependencies between this two projects (MWE2 Language and Xtext). Regards, Dennis.
Added guaard against NPE and made the action invisible if mwe2launch is not available. Since it's mainly a problem of inconsistent plugins and the feedback was improved, I'll close this one.
Closing all bugs that were set to RESOLVED before Neon.0