Get NullPointer by starting application

Post here questions and problems related to oXygen frameworks/document types.
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Get NullPointer by starting application

Post by Denis »

Hi,
we are using Eclipse oXygen Author 17.1.

By starting the the application we get the following Nullpointer:

Code: Select all


0 WARN [ main ] com.oxygenxml.editor.EditorPlugin - java.lang.NullPointerException
java.lang.NullPointerException
at com.oxygenxml.editor.EditorPlugin.getEclipseVersion(Unknown Source)
at com.oxygenxml.editor.EditorPlugin.upf(Unknown Source)
at com.oxygenxml.editor.EditorPlugin.kpf(Unknown Source)
at com.oxygenxml.editor.EditorPlugin$14.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
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:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
We starting oxygen in our eclipse application, which runs in version 3.6. Could this be the reason for the nullpointer?

Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Get NullPointer by starting application

Post by adrian »

Hi,

What distribution of Eclipse are you using Help > About Eclipse?
That NPE may appear if you have a custom Eclipse build that doesn't include the 'org.eclipse.platform' package.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Re: Get NullPointer by starting application

Post by Denis »

Hi,
I have found that the org.eclipse.platform package has to be in feature folder. After this is done the exception will not be thrown anymore.

Best regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Post Reply