Eclipse: Oxygen and m2e plugin don't get along?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
oliv3r
Posts: 3
Joined: Sun Aug 14, 2011 4:16 pm

Eclipse: Oxygen and m2e plugin don't get along?

Post by oliv3r »

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:

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
Has anyone else observed this behavior?

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
Yours,
Oliver
Radu
Posts: 9447
Joined: Fri Jul 09, 2004 5:18 pm

Re: Eclipse: Oxygen and m2e plugin don't get along?

Post by Radu »

Dear Oliver,

Thanks for the feedback.

Eclipse 7 had some changes in the way it interacts with plugins which manifested in problems like the one you reported.

Oxygen 13 which should appear in a couple of weeks should fix these problems.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
oliv3r
Posts: 3
Joined: Sun Aug 14, 2011 4:16 pm

Re: Eclipse: Oxygen and m2e plugin don't get along?

Post by oliv3r »

Hello Radu,

This is good news, thanks!

I just bought the Academic version of Oxygen 12.2. Do you know if I'm eligible to get Oxygen 13 when it comes out for free? Or will I have to buy an update?

Regards,
Oliver
Radu
Posts: 9447
Joined: Fri Jul 09, 2004 5:18 pm

Re: Eclipse: Oxygen and m2e plugin don't get along?

Post by Radu »

Hi Oliver,

An Academic license key comes with the SMP (Support + Maintainance Pack) package included so yes, you will have free use of Oxygen 13 when it comes out.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse: Oxygen and m2e plugin don't get along?

Post by adrian »

Hi,

We've made a few fixes that should prevent this in the latest build of 12.2, 2011082411 and also in v13.

You can find v12 in our software archive:
http://www.oxygenxml.com/software_archive.html

v13 is on the regular download page:
http://www.oxygenxml.com/download.html

Please let us know if you encounter further difficulties with the new version/build.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
oliv3r
Posts: 3
Joined: Sun Aug 14, 2011 4:16 pm

Re: Eclipse: Oxygen and m2e plugin don't get along?

Post by oliv3r »

Hi Adrian,

I just installed the v13 Eclipse plugin. Works like a charm so far :)

Thank you very much,
Oliver
Post Reply