Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 86846 - Crash on startup due to error in refresh local
Summary: Crash on startup due to error in refresh local
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Linux
: P2 major (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 71677 102307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-28 11:06 EST by Tony Bussieres CLA
Modified: 2005-10-17 15:38 EDT (History)
6 users (show)

See Also:


Attachments
.project file (534 bytes, text/plain)
2005-05-06 11:21 EDT, Ewan Chalmers CLA
no flags Details
Patch to org.eclipse.core.resources (2.68 KB, patch)
2005-05-17 14:16 EDT, John Arthorne CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Bussieres CLA 2005-02-28 11:06:40 EST
Since bug #38682 seems to be "resolved" in version eclipse 2.1
I tought it would be a good thing to reopen it for 3.0.1 
Here's the comment I wrote for #38682
----------------


I'm running eclipse 3.0.1 on RH AS3 Build id: 200409161125 using java version 1.4.2

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled:
jitc))

Last friday I closed eclipse before leaving the office, this morning when I came
to work, I started eclipse as usual however I got a popup that pointed an error,
and that I had to check my .log file.

To make my eclipse start again I had to move
.metadata/.plugins/org.eclipse.core.resources/.snap out of the way

However, after eclipse restarted all my projects were gone and I had to import
them one by one. Luckily I did not seem to have lost any java code. But I lost
two hours finding the problem and rebuilding my workspace.

here's an extract of my .log file:
!SESSION Feb 28, 2005 12:52:40.838 ---------------------------------------------
eclipse.buildId=M200409161125
java.fullversion=J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en

!ENTRY org.eclipse.osgi Feb 28, 2005 12:52:40.840
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (15).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle
org.eclipse.core.resources.
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:975)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
        at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
        at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
        at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
        at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: org.eclipse.core.internal.resources.ResourceException: The resource
tree is locked for modifications.
        at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
        at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
        at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
        at
org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
        at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java:351)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
        ... 30 more
Root exception:
org.eclipse.core.internal.resources.ResourceException: The resource tree is
locked for modifications.
        at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
        at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
        at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
        at
org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
        at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java:351)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
        at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
        at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
        at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
        at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi Feb 28, 2005 12:52:41.42
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
        at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
        at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
        at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)
Comment 1 John Arthorne CLA 2005-03-07 10:42:34 EST
So your previous session had exited normally - not frozen or the process
terminated from the Task Manager?

Unfortunately it looks like the startup error is masked in this case by an error
in shutdown.  PluginActivator.start catches the exception on startup, and then
calls Plugin.shutdown(). If shutdown() throws a second exception, the first
exception (the real cause of the failure) is lost. We should fix the error
reporting here to make sure failure information is not lost.
Comment 2 Tony Bussieres CLA 2005-03-07 10:58:20 EST
> So your previous session had exited normally - not frozen or the process
> terminated from the Task Manager?

Yes, everything seemed fine when I closed eclipse. 

> 
> Unfortunately it looks like the startup error is masked in this case by an error
> in shutdown. 

What should I do next time something like that happens again, so that you can
have more debug information ? What should I not do so I don't screw the logs /
state of eclipse when the bug occurs. 

Thanks for the reply.

Tony
Comment 3 Tony Bussieres CLA 2005-04-19 10:50:01 EDT
The samething happened again this morning...
Is there something I can do to help to debug ?



(In reply to comment #2)
> > So your previous session had exited normally - not frozen or the process
> > terminated from the Task Manager?
> 
> Yes, everything seemed fine when I closed eclipse. 
> 
> > 
> > Unfortunately it looks like the startup error is masked in this case by an error
> > in shutdown. 
> 
> What should I do next time something like that happens again, so that you can
> have more debug information ? What should I not do so I don't screw the logs /
> state of eclipse when the bug occurs. 
> 
> Thanks for the reply.
> 
> Tony

Comment 4 Ewan Chalmers CLA 2005-05-05 07:53:38 EDT
Eclipse died for me an hour ago in similar fashion. It will not restart due to
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject. However,
the start of the problem was a crash which happened while opening a project. The
log extract below shows the original crash and then the failed restart attempt.

!ENTRY org.eclipse.core.runtime 4 2 2005-05-05 11:50:07.828
!MESSAGE An internal error occurred during: "Refreshing workspace".
!STACK 0
java.lang.IllegalArgumentException: Element not found:
/sa_slm.oss/BuildArea/core/intermediate/classes/sa_slm.sla_mgmt/com/comnitel/slm/sla/slam/util/veto.
	at
org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:373)
	at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:282)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:731)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:765)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:82)
	at
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:34)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:220)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:292)
	at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:88)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:632)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:619)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1257)
	at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:134)
	at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
!SESSION 2005-05-05 11:52:09.566 -----------------------------------------------
eclipse.buildId=I20050219-1500
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2005-05-05 11:52:09.582
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (14).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle
org.eclipse.core.resources.
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1014)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:327)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:331)
	at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:34)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:726)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:355)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:94)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
Caused by: java.lang.IllegalArgumentException: Element not found:
/sa_sqm.adapter_toolkit/BuildArea/core/intermediate/test/classes.
	at
org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:373)
	at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:282)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:731)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:765)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:82)
	at
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:34)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:220)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:292)
	at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:87)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:632)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:619)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshRoot(FileSystemResourceManager.java:663)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:612)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1257)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1634)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:357)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)
	... 31 more
Root exception:
java.lang.IllegalArgumentException: Element not found:
/sa_sqm.adapter_toolkit/BuildArea/core/intermediate/test/classes.
	at
org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:373)
	at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:282)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:731)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:765)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:82)
	at
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:34)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:220)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:292)
	at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:87)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:632)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:619)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshRoot(FileSystemResourceManager.java:663)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:612)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1257)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1634)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:357)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:327)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:331)
	at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:34)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:726)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:355)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:94)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)

!ENTRY org.eclipse.osgi 2005-05-05 11:52:09.582
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
!SESSION 2005-05-05 11:52:31.520 -----------------------------------------------
eclipse.buildId=I20050219-1500
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2005-05-05 11:52:31.536
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (14).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle
org.eclipse.core.resources.
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1014)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:327)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:331)
	at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:34)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:726)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:355)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:94)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
Caused by: java.lang.IllegalArgumentException: Element not found:
/sa_sqm.adapter_toolkit/BuildArea/core/intermediate/test/classes.
	at
org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:373)
	at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:282)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:731)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:765)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:82)
	at
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:34)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:220)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:292)
	at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:87)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:632)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:619)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshRoot(FileSystemResourceManager.java:663)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:612)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1257)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1634)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:357)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)
	... 31 more
Root exception:
java.lang.IllegalArgumentException: Element not found:
/sa_sqm.adapter_toolkit/BuildArea/core/intermediate/test/classes.
	at
org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:373)
	at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:282)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:731)
	at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:765)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:82)
	at
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:34)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:220)
	at
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:292)
	at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:87)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:632)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:619)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshRoot(FileSystemResourceManager.java:663)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:612)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1257)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1634)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:357)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:327)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:331)
	at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:34)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:726)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:355)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:94)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)

!ENTRY org.eclipse.osgi 2005-05-05 11:52:31.536
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:35)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:126)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:173)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:884)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1554)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
Comment 5 Ewan Chalmers CLA 2005-05-05 08:09:08 EDT
For recovery, this suggestion posted by Sven_Eu at
http://howardlewisship.com/blog/2004/10/worst-eclipse-crash-ever.html seems to
have worked for me:

"I deleted the files \.metadata\.plugins\org.eclipse.core.resources\.snap
and \.metadata\.plugins\org.eclipse.core.resources\.root\.markers.snap and I
could start eclipse with my workspace and its projects preserved properly.
Everythng seems to work as it did before"

Comment 6 John Arthorne CLA 2005-05-05 17:38:02 EDT
I think this can be reproduced by calling refreshLocal on a file whose parent
folder does not exist. The test for this in the refresh local visitor is only
done for non case-sensitive file systems:

if (!CoreFileSystemLibrary.isCaseSensitive()) {
	Container parent = (Container) target.getParent();
	if (!parent.exists()) {
		refresh(parent);

I don't know why it is not done on case-sensitive file systems. I should be able
to create a test to reproduce this.
Comment 7 John Arthorne CLA 2005-05-06 11:05:52 EDT
Ewan, from your stack trace it looks like you are using linked resources.  Can
you briefly describe your project structure, including what linked resources are
pointing where?  If you like, you could attach the .project file for your
projects that will contain this information.  Also, are you using unix sym-links
anywhere in your project?  I am trying to reproduce your failure based on the
information in the log - if I can get a reproducible case I'm sure a fix would
not be far behind.

Comment #6 was a false lead.  RefreshLocalVisitor#createResource also creates
missing parent nodes as necessary.
Comment 8 John Arthorne CLA 2005-05-06 11:06:39 EDT
Adding Ewan to CC - can you respond to comment #7?
Comment 9 Ewan Chalmers CLA 2005-05-06 11:21:19 EDT
Created attachment 20777 [details]
.project file

.project file as requested.
Comment 10 Ewan Chalmers CLA 2005-05-06 11:25:21 EDT
(In reply to comment #8)
> Adding Ewan to CC - can you respond to comment #7?

I attached the .project file. Just be way of explanation, in every Eclipse
project I work on, I add a folder called "BuildArea" as a linked resource. This
links to a folder on my local machine (PC) which contains jars, configuration,
src-zips, etc for the product I am working on. Everything I work on is a
sub-project of the product.



Comment 11 Ewan Chalmers CLA 2005-05-06 11:31:19 EDT
Finally, regarding unix links, I work on and build to a windows pc, but I access
src on a unix box mounted via samba. Files not checked out of source control are
links.
Comment 12 John Arthorne CLA 2005-05-09 15:23:12 EDT
After much effort I was unable to create a reproducible test case.  I will leave
this open but unfortunately will probably not be able to fix in time for 3.1.
Comment 13 Tony Bussieres CLA 2005-05-12 15:19:41 EDT
Just happened to me again...
It crashed suddenly in debug mode, then I started to restart...
looks like the same class not found error...

We are running Eclipse off the network, might be an issue.

-Tony

Here's the log

!SESSION May 12, 2005 19:11:48.577 ---------------------------------------------
eclipse.buildId=M200409161125
java.fullversion=J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en

!ENTRY org.eclipse.osgi May 12, 2005 19:11:48.579
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (216).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle
org.eclipse.core.resources.
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:975)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
	at java.lang.reflect.Method.invoke(Method.java:391)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: org.eclipse.core.internal.resources.ResourceException: The resource
tree is locked for modifications.
	at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
	at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
	at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
	at org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
	at java.security.AccessController.doPrivileged1(Native Method)
	at java.security.AccessController.doPrivileged(AccessController.java:351)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
	... 30 more
Root exception:
org.eclipse.core.internal.resources.ResourceException: The resource tree is
locked for modifications.
	at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
	at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
	at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
	at org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
	at java.security.AccessController.doPrivileged1(Native Method)
	at java.security.AccessController.doPrivileged(AccessController.java:351)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
	at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
	at java.lang.reflect.Method.invoke(Method.java:391)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi May 12, 2005 19:11:48.784
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
	at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
	at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
	at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
	at java.lang.reflect.Method.invoke(Method.java:391)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)
Comment 14 John Arthorne CLA 2005-05-12 16:26:31 EDT
I just want to clarify the information in this bug.  In Tony's case, the actual
cause of the failure is being obscured by a follow-on exception that occurs
during shutdown after the first exception. Because of this, I have no idea what
is happening, or whether it is the same as Ewan's case.  In the 3.1 stream
builds (which Ewan is using), this secondary failure has been fixed and the
original failure should be more apparent. I am exploring minimally adding better
exception handling in Ewan's case to allow startup to proceed. I can only hope
that Tony's case is the same and fixing one will fix both.  Tony, if you get a
chance to try a 3.1 stream build I would be able to confirm whether your problem
is the same or not.
Comment 15 John Arthorne CLA 2005-05-12 16:30:45 EDT
I should add that in this situation, sometimes deleting the file
workspace/.metadata/.plugins/org.eclipse.core.resources/.snap has been known to
make the startup problem go away. It would be useful to know if this works for
either of you.
Comment 16 Bernard Cena CLA 2005-05-12 16:33:18 EDT
(In reply to comment #15)
We have had a case of another user reporting similar problem as Tony and your 
workaround has got him back up and running.
Comment 17 Ewan Chalmers CLA 2005-05-13 04:27:37 EDT
(In reply to comment #15)
The link in comment #5 suggests that deleting
\workspace\.metadata\.plugins\org.eclipse.core.resources\.snap alone results in
loss of projects from workspace. I can't verify that. But I did use the full
suggested workaround which is to delete
\workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.markers.snap
also and it worked just fine.

Comment 18 Stefan Fiedler CLA 2005-05-15 08:32:46 EDT
I just had a similar problem with 3.1m7 on PC/WinXP:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=95306

The workaround did not work for me as there's no \workspace\.metadata\.
plugins\org.eclipse.core.resources\.snap or \workspace\.metadata\.plugins\org.
eclipse.core.resources\.root\.markers.snap in my workspace.
Comment 19 John Arthorne CLA 2005-05-17 14:16:02 EDT
Created attachment 21282 [details]
Patch to org.eclipse.core.resources

Even though we haven't created a reproducible test, this patch should fix the
problem.

 - Changed RefreshLocalVisitor to ensure the parent resource exists before
refresh ing a resource.  Previously this code ran inside an if (!caseSensitive)
block, so it did not run on Linux.
 - If refresh fails during Workspace.open, log the failure but continue with
startup.  In the worst case, this will ensure any problems in the refresh code
do not cause startup to fail.
Comment 20 John Arthorne CLA 2005-05-17 14:44:25 EDT
DJ, I'd like to consider this fix for RC1
Comment 21 DJ Houghton CLA 2005-05-17 14:59:41 EDT
+1 for RC1
Comment 22 John Arthorne CLA 2005-05-18 10:38:54 EDT
I have released the fixes in the patch on comment #19.
Comment 23 John Arthorne CLA 2005-05-19 11:20:57 EDT
I have also released this fix to the 3.0.x stream.  A patch that can be applied
to either Eclipse 3.0.1 or 3.0.2 is available here:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/downloads.html

If anyone still has a broken workspace in 3.0.x, running with the patch should
allow you to startup.  Please report results here if you do this so we can
verify the fix.
Comment 24 Michael Valenta CLA 2005-09-07 15:25:17 EDT
*** Bug 102307 has been marked as a duplicate of this bug. ***
Comment 25 John Arthorne CLA 2005-10-17 15:38:51 EDT
*** Bug 71677 has been marked as a duplicate of this bug. ***