Bug 84315 - java indexing sometimes throw npe
Summary: java indexing sometimes throw npe
Status: CLOSED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 72183 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-03 06:06 EST by Hirotaka Matsumoto CLA
Modified: 2005-06-08 21:43 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hirotaka Matsumoto CLA 2005-02-03 06:06:16 EST
java indexing sometimes throws npe when lots of plugins ( around 300 )
are in the workspace so that some functions, i.e. Open Type,
don't work at all.

!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.NullPointerException: name can't be null
	at java.io.FilePermission.init(FilePermission.java(Inlined Compiled Code))
	at java.io.FilePermission.<init>(FilePermission.java(Compiled Code))
	at java.lang.SecurityManager.checkRead(SecurityManager.java:899)
	at java.io.FileInputStream.<init>(FileInputStream.java(Inlined Compiled Code))
	at
org.eclipse.jdt.internal.core.index.DiskIndex.readCategoryTable(DiskIndex.java(Compiled
Code))
	at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategory(DiskIndex.java(Compiled
Code))
	at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategories(DiskIndex.java:352)
	at
org.eclipse.jdt.internal.core.index.DiskIndex.mergeWith(DiskIndex.java(Compiled
Code))
	at org.eclipse.jdt.internal.core.index.Index.save(Index.java(Inlined Compiled
Code))
	at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndex(IndexManager.java(Compiled
Code))
	at
org.eclipse.jdt.internal.core.search.indexing.SaveIndex.execute(SaveIndex.java:40)
	at
org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java(Compiled
Code))
	at java.lang.Thread.run(Thread.java:568)
Comment 1 Kent Johnson CLA 2005-02-04 10:02:48 EST
Which VM are you using?

Is it IBM build cxia321411-20040301? If so, there are newer versions of this 
VM available - you should switch.

Suspect this is a duplicate of bug 66836
Comment 2 Kent Johnson CLA 2005-02-04 10:04:08 EST
*** Bug 72183 has been marked as a duplicate of this bug. ***
Comment 3 Hirotaka Matsumoto CLA 2005-02-07 01:04:16 EST
I'm using 

cn1411-20030930

ok, I'll swithing it to :

cn142ifx-20041203

to see if this problem still happens.

Comment 4 Kent Johnson CLA 2005-02-07 09:46:49 EST
Please reopen if the problem happens again.
Comment 5 Adam Kiezun CLA 2005-06-08 15:29:32 EDT
FYI: happens on 3.0.2 on GTK too
Comment 6 Hirotaka Matsumoto CLA 2005-06-08 21:43:45 EDT
In my environment, this problem seems to be stopped.

.