Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.IllegalStateException: Workspace is closed.
java.lang.IllegalStateException: Workspace is closed. [message #158058] Thu, 22 June 2006 07:23 Go to next message
Eclipse UserFriend
Originally posted by: kja.eswar.gmail.com

Hi all,

I'm writing a plugin, and I'm blocked on a strange behavior. My plugin
contains a wizard, and as soon as I start a debug session for it and try
to open the wizard I get the following message on the console:

Unhandled event loop exception
Reason:
Workspace is closed.

In the .log file, I find the exception shown at the end of this messasge.
I'm running Eclipse 3.1 .

Can someone give me a hint? I'm totally lost!
Thanks in advance,
Eswar

java.lang.IllegalStateException: Workspace is closed.
at
org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:320)
at
org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup.cre ateTreeViewer(ContainerSelectionGroup.java:255)
at
org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup.cre ateContents(ContainerSelectionGroup.java:205)
at
org.eclipse.ui.internal.ide.misc.ContainerSelectionGroup.<init >(ContainerSelectionGroup.java:142)
at
org.eclipse.ui.internal.ide.misc.ResourceAndContainerGroup.c reateContents(ResourceAndContainerGroup.java:174)
at
org.eclipse.ui.internal.ide.misc.ResourceAndContainerGroup.<init >(ResourceAndContainerGroup.java:135)
at
org.eclipse.ui.dialogs.WizardNewFileCreationPage.createContr ol(WizardNewFileCreationPage.java:189)
at
shapesEditor.ShapesCreationWizard$CreationPage.createControl (ShapesCreationWizard.java:91)
at
org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1020)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1013)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.jav a:1003)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1001)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:753)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:345)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewExampleAction.run(NewExampleAction .java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: java.lang.IllegalStateException: Workspace is closed. [message #1787616 is a reply to message #158058] Wed, 30 May 2018 06:36 Go to previous message
Kinzal Ostwal is currently offline Kinzal OstwalFriend
Messages: 1
Registered: May 2018
Junior Member
I am facing same issue after adding code as
IPathVariableManager variableManager1 = ResourcesPlugin.getWorkspace().getPathVariableManager();
System.out.println(variableManager1);

java.lang.IllegalStateException: Workspace is closed. exception is getting return.
Have also added resource bundle in naifest file as below
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0";visibility:=reexport,
org.eclipse.core.resources;bundle-version="3.6.0";visibility:=reexport

Still same error occurs any solution to this?
Previous Topic:Permission denied while saving a file in eclipse
Next Topic:Slow refactory/deleting
Goto Forum:
  


Current Time: Tue Mar 19 02:33:29 GMT 2024

Powered by FUDForum. Page generated in 0.03380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top