Technote (troubleshooting)
Problem(Abstract)
Attempts to run the command "--launcher.suppressErrors" from the command line results in the application error "Eclipse: An error has occurred. See the log file /home/user/IBM/RSAREE/workspace/.metadat/,log."
Symptom
Executing Rational Software Analyzer through the command line using the command...
--launcher.suppressErrors
...results in a crash revealing the following application error:
"Eclipse: An error has occurred. See the log file /home/user/IBM/RSAREE/workspace/.metadat/,log."
The references log contains the exception:
!ENTRY org.eclipse.osgi 4 0 2010-11-17 16:14:12.180
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.ui.internal.Workbench.createDisplay(Unknown Source)
at org.eclipse.ui.PlatformUI.createDisplay(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
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(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)
Cause
When executing in command line, Rational Software Analyzer is loading some plug-ins in the GUI thread.
Environment
Red Hat Linux, command line
Resolving the problem
To resolve this issue, perform the following steps:
- In terminal, execute the following commands:
export DISPLAY=:1
Xvfb :1 -ac -screen 0 1024x768x8 &
- From that terminal execute the --launcher.suppressErrors command.
Rate this page:
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.