Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367444

Summary: Repeatable NPE while saving workspace state
Product: [Eclipse Project] Platform Reporter: David M. Karr <davidmichaelkarr>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen, sptaszkiewicz
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David M. Karr CLA 2011-12-22 12:12:50 EST
Build Identifier: 201111221000

Since a few days ago, every time I exit Eclipse, it fails while "saving workspace state" with the following:

Problems occurred while trying to save the state of the workbench.
  Could not write workspace metadata '<workspace>/.metadata/.plugins/org.eclipse.core.resources/.root/332.tree'.
  java.lang.NullPointerException

At the time of the failure, this is a "ls -lt" of that ".root" directory:
---------------------
total 12000
drwx------+ 3 dk068x Domain Users        0 Dec 22 08:38 ./
-rwx------+ 1 dk068x Domain Users    13607 Dec 22 08:38 332.tree*
-rwx------+ 1 dk068x Domain Users    77552 Dec 21 17:48 .markers.snap*
drwx------+ 6 dk068x Domain Users        0 Dec 16 11:10 ../
-rwx------+ 1 dk068x Domain Users    19274 Dec 16 09:11 .markers*
-rwx------+ 1 dk068x Domain Users 12172581 Dec 16 09:11 331.tree*
drwx------+ 2 dk068x Domain Users        0 Jun 23  2010 .indexes/
-----------------

I looked in the .log file, and there is no stack trace for this NPE, or any messages that seem to be relevant to this.

Reproducible: Always
Comment 1 David M. Karr CLA 2011-12-27 19:14:02 EST
After several days of this symptom repeating consistently and without variation, it wasn't long after I filed this that I stopped seeing the symptom.  I haven't seen it since.
Comment 2 Szymon Ptaszkiewicz CLA 2012-04-02 13:49:53 EDT
It looks like a duplicate of bug 352867.

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