Skip to main content

Error: java.lang.RuntimeException: Widget disposed too early


Technote (troubleshooting)


Problem(Abstract)

This technote explains how to resolve a java runtime exception error, "Widget disposed too early", that might occur when using IBM® Rational® ClearQuest® in a Linux® environment.

Symptom

After installing ClearQuest, the ClearQuest Eclipse Client (RCP) will not start. In the ClearQuest installation.log file you might find the following error:

!ENTRY org.eclipse.ui.workbench 4 0 2007-03-27 14:39:07.61
!MESSAGE Widget disposed too early!
!STACK 0
java.lang.RuntimeException: Widget disposed too early!


Similarly, ClearQuest may start but then the splash screen errors out referring to a log file that has the widget error above and the following SWTError:

!ENTRY org.eclipse.osgi 2008-04-25 14:29:19.298

!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error



Cause

The root cause is that the Standard Widget Toolkit (SWT) runtime can not find or initialize the installed browser.

Note: This can also occur if there are problems with the version of xulrunner installed. For example, if you have mozilla-xulrunner on SUSE Linux, running an rpm -e command against the package might resolve the problem. For more information on this, see techote 1394977.


Resolving the problem

The SWT FAQ offers a solution to resolve this issue. Notice the section specifically about a bug with IBM 1.4 VMs that may keep the necessary libraries of the LD_LIBRARY_PATH environment variable. The following section is copied from the SWT FAQ:

Q: How can I get the SWT Browser to work with the IBM 1.4 VM?

A: The IBM 1.4 VM accidentally removes certain entries of the environment variable LD_LIBRARY_PATH. This occurs in particular for entries starting with /usr/lib. It will leave untouched entries such as /usr/../usr/lib.

Instructions for Red Hat Enterprise Linux 3 users:

  1. Mozilla is installed in /usr/lib/mozilla-1.x on this platform. Set the environment variable MOZILLA_FIVE_HOME to /usr/../usr/lib/mozilla-1.x. The variable may also be set to the Firefox install directory if that is the browser installed.
  2. Start Eclipse. If you are not using Eclipse, add MOZILLA_FIVE_HOME to LD_LIBRARY_PATH before starting your standalone SWT application.
  3. The Browser widget should now work with the IBM VM.

Note: These instructions are for RHEL 4 and 5 as well.

This was logged as a documentation defect under APAR PK65929. The ClearQuest Information Center includes these necessary instructions starting in version 7.1.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational ClearQuest

Client - Eclipse RCP


Software version:
7.0, 7.0.0.1, 7.0.0.2, 7.0.0.3, 7.0.0.4, 7.0.0.5, 7.0.0.6, 7.0.0.7, 7.0.0.8, 7.0.0.9, 7.0.1, 7.0.1.1, 7.0.1.2, 7.0.1.3, 7.0.1.4, 7.0.1.5, 7.0.1.6, 7.0.1.7, 7.0.1.8, 7.1, 7.1.0.1, 7.1.0.2, 7.1.1, 7.1.1.1


Operating system(s):
Linux


Reference #:
1265773


Modified date:
2010-04-14

Translate my page

Content navigation