Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336469 - [registry] NPE on startup
Summary: [registry] NPE on startup
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 RC1   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 336837 (view as bug list)
Depends on: 336435
Blocks:
  Show dependency tree
 
Reported: 2011-02-06 22:23 EST by Pascal Rapicault CLA
Modified: 2011-05-09 22:21 EDT (History)
5 users (show)

See Also:
dj.houghton: review? (pascal)


Attachments
patch (1.40 KB, patch)
2011-05-09 16:21 EDT, DJ Houghton CLA
pascal: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.