Application Error displayed when executing Rational Software Analyzer through the command line

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:

  1. In terminal, execute the following commands:

    export DISPLAY=:1

    Xvfb :1 -ac -screen 0 1024x768x8 &

  2. From that terminal execute the --launcher.suppressErrors command.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Software Analyzer Developer Edition
Command Line Support

Software version:

7.0.1, 7.1, 7.1.0.1

Operating system(s):

Linux

Reference #:

1456909

Modified date:

2010-12-29

Translate my page

Machine Translation

Content navigation