Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while running au(Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while running automation)
Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while running au [message #1103139] Fri, 06 September 2013 12:18 Go to next message
Bhupendra Mahajan is currently offline Bhupendra MahajanFriend
Messages: 33
Registered: September 2013
Member
Hi,

While running automation on RCP using Jubula "Widget is disposed" error occurs multiple times, same is NOT observed when same steps are done manually.

Should there be something to be fixed in Jubula config or the AUT ?

Following is the exception trace

An error occurred. Please contact your system administrator.
  Unhandled event loop exception
  org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTException: Widget is disposed)
          at org.eclipse.swt.SWT.error(SWT.java:4361)
          at org.eclipse.swt.SWT.error(SWT.java:4276)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
		  ...
          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:353)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
  Caused by: org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTException: Widget is disposed
          at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
          at org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler$1.run(UIEventObjectSupplier.java:49)
          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
          ... 22 more
  Caused by: org.eclipse.swt.SWTException: Widget is disposed
          at org.eclipse.swt.SWT.error(SWT.java:4361)
          at org.eclipse.swt.SWT.error(SWT.java:4276)
          at org.eclipse.swt.SWT.error(SWT.java:4247)
          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.Tree.getSelection(Tree.java:3404)
          at org.eclipse.jface.viewers.TreeViewer.getSelection(TreeViewer.java:256)
          at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:344)
          at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2544)
          at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2967)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1450)
          at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
          at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
          at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:537)
          at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
			...
			...
			...
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
          ... 25 more


Any help/suggestion is much appreciated. Thanks
Re: Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while runnin [message #1110788 is a reply to message #1103139] Tue, 17 September 2013 10:27 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi, is this error occurring just in the log, or is it popping up in your AUT?

Thanks for any information.
Re: Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while runnin [message #1112104 is a reply to message #1110788] Thu, 19 September 2013 06:10 Go to previous messageGo to next message
Bhupendra Mahajan is currently offline Bhupendra MahajanFriend
Messages: 33
Registered: September 2013
Member
Forgot to update this one.

The error was coming up as popup on RCP client, while closing one of the window.

This has been resolved now, the fix was in the code (Dev side) where something was looking up for the closed window, after closure Razz

Thanks,
Bhupendra
Re: Observed "org.eclipse.swt.SWTException: Widget is disposed" multiple time while runnin [message #1112253 is a reply to message #1112104] Thu, 19 September 2013 10:07 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Thanks for the update Smile
Previous Topic:Inconsistency in Jubula runs
Next Topic:Skip a test case based on variable
Goto Forum:
  


Current Time: Thu Apr 25 00:36:33 GMT 2024

Powered by FUDForum. Page generated in 0.03377 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top