NullPointerException

<oXygen/> general issues.
Denis
Posts: 47

NullPointerException

Thu Aug 25, 2016 2:46 pm

Hi,
we are using oxygen Author Eclipse Version 17.1.

The editor is throwing two exceptions when I do the following steps:
  • Open a document in the Authorview
  • Set the caret behind the last tag
  • Open the contextmenu and go to Refactoring
  • Then select one of the actions after the seperator (e.g. Fragments -> Insert XML Fragment)

This are the exceptions, which I get:

Code: Select all

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: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)
   at com.teamcenter.rac.contmgmt.client.DcApplication.start(DcApplication.java:228)
   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:369)
   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:620)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: java.lang.NullPointerException
   at com.oxygenxml.editor.j.j$5.run(Unknown Source)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
   ... 23 more



and

Code: Select all

java.util.EmptyStackException
   at java.util.Stack.peek(Unknown Source)
   at ro.sync.exml.xmlrefactory.d.b.l.b(Unknown Source)
   at com.oxygenxml.editor.j.b.i.f(Unknown Source)
   at com.oxygenxml.editor.j.b.n.s(Unknown Source)
   at com.oxygenxml.editor.j.b.n.q(Unknown Source)
   at com.oxygenxml.editor.j.b.n.<init>(Unknown Source)
   at com.oxygenxml.editor.j.b.f.b(Unknown Source)
   at com.oxygenxml.editor.j.j.createDialogArea(Unknown Source)
   at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
   at org.eclipse.jface.window.Window.create(Window.java:431)
   at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
   at org.eclipse.jface.window.Window.open(Window.java:790)
   at com.oxygenxml.editor.swtutil.dd.open(Unknown Source)
   at com.oxygenxml.editor.j.j.wmz(Unknown Source)
   at ro.sync.exml.xmlrefactory.d.h.c(Unknown Source)
   at com.oxygenxml.editor.editors.author.f.k.tce(Unknown Source)
   at com.oxygenxml.editor.g.dde(Unknown Source)
   at com.oxygenxml.editor.g.runWithEvent(Unknown Source)
   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: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)


Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Radu
Posts: 5757

Re: NullPointerException

Thu Aug 25, 2016 3:12 pm

Hi Denis,

Thanks for the details, I reproduced the problem and I added an issue on our side. It will probably be fixed in Oxygen 18.1, this Autumn.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 5757

Re: NullPointerException

Thu Oct 20, 2016 3:34 pm

Hi Denis,

Oxygen 18.1 was just released and it should also have a fix for your reported problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 4 guests