Get NullPointer by starting application

Post here questions and problems related to oXygen frameworks/document types.
Denis
Posts: 47

Get NullPointer by starting application

Thu Nov 19, 2015 8:33 pm

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: 2453

Re: Get NullPointer by starting application

Thu Nov 19, 2015 9:42 pm

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

Re: Get NullPointer by starting application

Fri Nov 20, 2015 6:14 pm

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 2 guests