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

Bug 336469

Summary: [registry] NPE on startup
Product: [Eclipse Project] Equinox Reporter: Pascal Rapicault <pascal>
Component: p2Assignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, david_williams, overholt, pascal, thomas
Version: 3.7Flags: dj.houghton: review? (pascal)
Target Milestone: 3.7 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 336435    
Bug Blocks:    
Attachments:
Description Flags
patch pascal: review+

Description Pascal Rapicault CLA 2011-02-06 22:23:04 EST
+++ This bug was initially created as a clone of Bug #336435 +++

I installed the M5 version of eclipse SDK, then used /releases/indigo (which contained M5 version of Simultaneous Release) and selected all categories, except for EclipseRT one. 

After an hour or so, said it was done, and I'd have to restart, but when I tried, I got an error dialog that said ... 

An error has occurred. See the log file
/home/davidw/builds/workspaces/testWorkspace/.metadata/.log.

Oddly, there was no (new) error message in .log, though there was in the 
.../configuration/*.log file. 

The .metadata/.log message did have several error messages in it, apparently from the "install everything" operations, but not sure how/if the two set of errors are related, so I'll attach both .log file and configuration log. 

FYI, if relevent, I have been trying similar things on Windows (but never "install everything") so this might be platform specific?
Comment 1 Pascal Rapicault CLA 2011-02-06 22:23:59 EST
The log for the NPE is attached: https://bugs.eclipse.org/bugs/attachment.cgi?id=188393
Not sure if it is related to installing everything.
Comment 2 DJ Houghton CLA 2011-02-07 12:08:38 EST
These are NPEs in the profile registry when we are trying to restore it. They are coming from calling File#listFiles and getting back null. This can happen when the receiver is not a directory or if an NPE happens when we are making the call. 

I will add code to protect against the NPE and try and track down how we can get in this state but at first glance I don't see it, assuming we are dealing with a single thread and people aren't changing the file-system from under us.
Comment 3 Andrew Overholt CLA 2011-02-10 12:40:28 EST
*** Bug 336837 has been marked as a duplicate of this bug. ***
Comment 4 DJ Houghton CLA 2011-05-09 16:21:59 EDT
Created attachment 195141 [details]
patch
Comment 5 Pascal Rapicault CLA 2011-05-09 22:21:10 EDT
Patch released.