Bug 473839 - Eclipse cannot start after a crash due to Buildship initialization error
Summary: Eclipse cannot start after a crash due to Buildship initialization error
Status: CLOSED FIXED
Alias: None
Product: Buildship
Classification: Tools
Component: General (show other bugs)
Version: 1.0.3   Edit
Hardware: PC Windows 7
: P3 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: greatbug
Depends on:
Blocks:
 
Reported: 2015-07-29 09:01 EDT by Thomas Adriano CLA
Modified: 2016-03-02 13:17 EST (History)
2 users (show)

See Also:


Attachments
Complete log (6.45 KB, application/octet-stream)
2015-07-29 09:01 EDT, Thomas Adriano CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Adriano CLA 2015-07-29 09:01:27 EDT
Created attachment 255509 [details]
Complete log

This is the 3rd time it happens to me. 
Every time I try to start eclipse after my computer abruptly shuts down (energy fault, for example) the following error occurs and I'm unable to start eclipse. The only way around is completely remove buildship plugin.

The exception logged at .metadata\.log is (complete log attached):

!ENTRY org.eclipse.buildship.ui 4 0 2015-07-29 09:41:27.323
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.buildship.ui.UiPlugin.start() of bundle org.eclipse.buildship.ui.
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
	at org.eclipse.osgi.container.Module.start(Module.java:439)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.IllegalStateException: Workbench has not been created yet.
	at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
	at org.eclipse.ui.plugin.AbstractUIPlugin.getWorkbench(AbstractUIPlugin.java:303)
	at org.eclipse.buildship.ui.UiPlugin.registerListeners(UiPlugin.java:129)
	at org.eclipse.buildship.ui.UiPlugin.start(UiPlugin.java:68)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
	... 12 more
Root exception:
java.lang.IllegalStateException: Workbench has not been created yet.
	at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
	at org.eclipse.ui.plugin.AbstractUIPlugin.getWorkbench(AbstractUIPlugin.java:303)
	at org.eclipse.buildship.ui.UiPlugin.registerListeners(UiPlugin.java:129)
	at org.eclipse.buildship.ui.UiPlugin.start(UiPlugin.java:68)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
	at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
	at org.eclipse.osgi.container.Module.start(Module.java:439)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Comment 1 Thomas Adriano CLA 2015-07-29 09:42:33 EDT
I just found that it isn't necessary to completely remove buildship plugin from eclipse, just deleting the workspace also resolves the problem.
Comment 2 Donat Csikos CLA 2015-10-08 04:18:18 EDT
The latest released Buildship version should have it fixed. Can you please check if it works for you now?
Comment 3 Stefan Oehme CLA 2016-03-02 13:17:39 EST
Assume fixed since we did not hear back from the reporter. Please reopen if it still occurs.