Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330373 - IllegalStateException: Workbench has not been created yet
Summary: IllegalStateException: Workbench has not been created yet
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 330346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-16 11:13 EST by Andrew Niefer CLA
Modified: 2010-12-07 07:27 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2010-11-16 11:13:19 EST

    
Comment 1 Andrew Niefer CLA 2010-11-16 11:14:20 EST
On the first run of a fresh download of I20101116-0800, linux.gtk.x86_64
This exception comes up on the console while the the workspace choose dialog is up.



java.lang.IllegalStateException: Workbench has not been created yet.
	at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
	at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin$2.run(IDEWorkbenchPlugin.java:360)
	at org.eclipse.swt.widgets.Display.timerProc(Display.java:4105)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2255)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3158)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:91)
	at org.eclipse.ui.internal.ide.application.IDEApplication.promptForWorkspace(IDEApplication.java:277)
	at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:225)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:105)
	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:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
Comment 2 Andrew Niefer CLA 2010-11-16 11:15:49 EST
Eclipse opens as normal and works fine after choosing a workspace, you might need to wait a few seconds at the workspace chooser dialog before the exception comes.
Comment 3 Krzysztof Daniel CLA 2010-11-16 12:02:11 EST
It is caused by the bug 329002 - A problem view is created with delay. If the workbench is not opened by that time, an exception will be thrown.
Comment 4 Dani Megert CLA 2010-11-16 12:15:48 EST
Let me take a look.
Comment 5 Dani Megert CLA 2010-11-16 13:12:16 EST
Fixed in HEAD (IDEWorkbenchPlugin.java rev. 1.53).
Comment 6 Dani Megert CLA 2010-11-16 13:12:39 EST
.
Comment 7 Markus Keller CLA 2010-11-16 14:40:26 EST
*** Bug 330346 has been marked as a duplicate of this bug. ***
Comment 8 Remy Suen CLA 2010-12-03 10:09:02 EST
*** Bug 331771 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2010-12-07 07:27:26 EST
Verified in I20101206-1800.