Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Oxygen general issues.
SNO
Posts: 51
Joined: Mon Oct 01, 2012 3:05 pm

Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Post by SNO »

Hi,
I discovered a SWTException on startup an RCP Client including Oxygen.
How I got this:
  1. I opend RCP Client (CMS) opened a XML file in Oxygen
  2. Cleared the LIcense in the preference dialog
  3. Closed the Client with open editors
  4. restarted Client
  5. While starting the License dialog shows up and I entered the license again -> pressed OK
  6. After that the Exception comes up and the dialog that I should use a license Server

Code: Select all

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)
	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:218)
	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(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	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: org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
	at org.eclipse.swt.widgets.Text.getText(Text.java:1117)
	at com.oxygenxml.editor.license.c.spbb(Unknown Source)
	at com.oxygenxml.editor.license.c.qobb(Unknown Source)
	at com.oxygenxml.editor.license.c$13.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
Best Regards
Stefan
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Radu
Posts: 9452
Joined: Fri Jul 09, 2004 5:18 pm

Re: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Post by Radu »

Hi Stefan,

Thanks for the report, I added an internal issue to look into this.
What version of the Oxygen eclipse plugin are you using?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SNO
Posts: 51
Joined: Mon Oct 01, 2012 3:05 pm

Re: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Post by SNO »

Hi Radu

We are using

Oxygen Author 22.1, build:2020072902
Eclipse 3.7

Regards
Stefan
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Radu
Posts: 9452
Joined: Fri Jul 09, 2004 5:18 pm

Re: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Post by Radu »

Hi Stefan,

Thanks, I added your details on the issue and we'll try to have a fix for this in Oxygen 23 (November this year).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Mircea
Posts: 144
Joined: Tue Mar 25, 2003 11:21 am

Re: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

Post by Mircea »

Hello Stefan,

The problem you encountered was fixed in the new 23 version of Oxygen that we released last week.

Regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply