Eclipse: Oxygen and m2e plugin don't get along?
Posted: Sun Aug 14, 2011 5:25 pm
Hello,
It looks like the Oxygen Eclipse plugin doesn't get along with the m2e ("Maven Integration for Eclipse", http://www.eclipse.org/m2e/) plugin.
I experience the following problem, when the m2e plugin is installed: After I open a XSD document and toggle between the tabs "Text" and "Design" I get an error message:
"Could not open the document in mode 'Design': null" (and "Could not open the document in mode 'Text': null" respectively).
In Eclipse's error log I see:
This happens in both the "Java" and the "Oxygen XML" perspectives.
Workarounds I found:
My setup:
Oliver
It looks like the Oxygen Eclipse plugin doesn't get along with the m2e ("Maven Integration for Eclipse", http://www.eclipse.org/m2e/) plugin.
I experience the following problem, when the m2e plugin is installed: After I open a XSD document and toggle between the tabs "Text" and "Design" I get an error message:
"Could not open the document in mode 'Design': null" (and "Could not open the document in mode 'Text': null" respectively).
In Eclipse's error log I see:
Code: Select all
"Unhandled event loop exception"
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4282)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
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)
Caused by: java.lang.NullPointerException
at com.oxygenxml.editor.editors.xsl.c.makeContributions(Unknown Source)
at com.oxygenxml.editor.view.y.refreshPage(Unknown Source)
at com.oxygenxml.editor.editors.h.refreshPage(Unknown Source)
at com.oxygenxml.editor.i.e.refreshPage(Unknown Source)
at com.oxygenxml.editor.view.y.pageChanged(Unknown Source)
at com.oxygenxml.editor.editors.h.pageChanged(Unknown Source)
at com.oxygenxml.editor.editors.xml.AbstractMultiPageXMLEditor$5.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 22 more
This happens in both the "Java" and the "Oxygen XML" perspectives.
Workarounds I found:
- Closing the "Outline" view in all perspectives (and then restarting Eclipse) solves the problem.
- Uninstall m2e
My setup:
- Eclipse: 3.7 (Indigo JEE release and 3.7.1 M20110810-0800)
- Oxygen: com.oxygenxml.editor_12.2.0.v2011080114.zip
- m2e - Maven Integration for Eclipse: 1.0.0.20110607-2117
- Java: 1.6.0u24
Oliver