Bug 79351 - [implementation] trying to access workspace after it has been closed
Summary: [implementation] trying to access workspace after it has been closed
Status: RESOLVED DUPLICATE of bug 34800
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-23 16:33 EST by Rafael Chaves CLA
Modified: 2006-04-18 08:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2004-11-23 16:33:14 EST
i200411230823

Running a runtime workbench against an older workspace that had three editors
opened would cause the IllegalStateException below during shutdown. It seems
that after I cycled through the editors during one session, the problem would
not happen anymore. I cannot reproduce it anymore, but I thought you might be
interested in seeing the stack trace.

java.lang.IllegalStateException: Workspace is closed.
	at
org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java(Compiled
Code))
	at
org.eclipse.ui.editors.text.TextFileDocumentProvider.<init>(TextFileDocumentProvider.java:384)
	at
org.eclipse.ui.editors.text.TextFileDocumentProvider.<init>(TextFileDocumentProvider.java:369)
	at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.<init>(CompilationUnitDocumentProvider.java:783)
	at
org.eclipse.jdt.internal.ui.JavaPlugin.getCompilationUnitDocumentProvider(JavaPlugin.java:505)
	at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.getProblemRequestorExtension(JavaCompositeReconcilingStrategy.java:63)
	at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:118)
	at
org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:103)
	at
org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:307)
	at
org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:170)
Comment 1 Dani Megert CLA 2004-11-24 03:07:39 EST
>Running a runtime workbench against an older workspace
Do you mean out of an exisitng workspace which had an old drop you started a
target workspace or did you simply start an old workspace using I200411230823?

I guess the error could also be reproduced by sarting Eclipse which has an open
Java editor and quickly closing it again.

Related to bug 34800.
Comment 2 Dani Megert CLA 2006-04-18 08:46:45 EDT

*** This bug has been marked as a duplicate of 34800 ***