IBM Support

IllegalStateException: "Workbench has not been created yet"

Troubleshooting


Problem

When using the product without the Eclipse user interface, such as using Ant tasks or JUnit which start from the command prompt, during the server start process an illegal state exception occurs stating that the workbench has not been created.

Symptom

An example of the IllegalStateException message thrown in the console output:
java.lang.IllegalStateException: Workbench has not been created yet.
    at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
    at org.eclipse.wst.server.ui.internal.SaveEditorPrompter.saveAllEditors(SaveEditorPrompter.java:26)
    at org.eclipse.wst.server.core.internal.Server.start(Server.java:1788)

    ...
Tip: Alternatively, the exception message is written in the .log file available in the .metadata directory of your workspace directory.

Cause

A validator fails when using the product without the Eclipse user interface. The validator prevents loading of unnecessary code and incorrectly returns that the user interface is available.

Resolving The Problem

In the below Related Information section, you can find the link to download the fix.

Related Information

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Server Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5.5.3","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21460043