Bug 66821

Summary: Null pointer exceptions when extracting CVS image
Product: [Eclipse Project] JDT Reporter: Ed Merks <Ed.Merks>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Ed Merks CLA 2004-06-12 09:27:35 EDT
With RC2 on Windows 2000, when I extract the EMF/SDO/XSD image from CVS, I get 
the following results in the .log:

!SESSION Jun 12, 2004 08:13:49.256 ---------------------------------------------
eclipse.buildId=I200406111814
java.fullversion=J2RE 1.4.1 IBM Windows 32 build cn1411-20040301a (JIT enabled: 
jitc)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.pde.core 2 1 Jun 12, 2004 08:13:49.256
!MESSAGE Problems encountered while PDE was scanning the Target Platform
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore 2 2 Jun 12, 2004 08:13:49.256
!MESSAGE Missing required plug-in org.eclipse.emf.ecore.xmi_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore 2 2 Jun 12, 2004 08:13:49.256
!MESSAGE Missing required plug-in org.eclipse.emf.ecore.edit_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore 2 2 Jun 12, 2004 08:13:49.256
!MESSAGE Missing required plug-in org.eclipse.emf.mapping_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore 2 2 Jun 12, 2004 08:13:49.256
!MESSAGE Missing required plug-in org.eclipse.xsd_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore 2 2 Jun 12, 2004 08:13:49.287
!MESSAGE Missing required plug-in org.eclipse.xsd.edit_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore.editor 2 2 Jun 12, 2004 
08:13:49.287
!MESSAGE Missing required plug-in org.eclipse.emf.mapping.ui_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore.editor 2 2 Jun 12, 2004 
08:13:49.287
!MESSAGE Missing required plug-in org.eclipse.emf.mapping.xsd2ecore_null,null
!SUBENTRY 1 org.eclipse.emf.mapping.xsd2ecore.editor 2 2 Jun 12, 2004 
08:13:49.287
!MESSAGE Missing required plug-in org.eclipse.xsd.edit_null,null
!SUBENTRY 1 org.eclipse.xsd 2 2 Jun 12, 2004 08:13:49.287
!MESSAGE Missing required plug-in org.eclipse.emf.ecore_null,null

!ENTRY org.eclipse.jdt.core 4 4 Jun 12, 2004 08:14:51.750
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.NullPointerException: name can't be null
  at java.io.FilePermission.init(FilePermission.java:180)
  at java.io.FilePermission.<init>(FilePermission.java:253)
  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(C
ompiled Code))
  at 
org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategory(DiskIndex.java:360)
  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(IndexManage
r.java(Compiled Code))
  at 
org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndexes(IndexMana
ger.java:544)
  at 
org.eclipse.jdt.internal.core.search.indexing.IndexManager.notifyIdle(IndexManag
er.java:365)
  at 
org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:3
44)
  at java.lang.Thread.run(Thread.java:568)

Perhaps this is related to the problem that the first Java project will often 
complain, upon first starting Eclipse, that it can't find java.lang.Object. Yet 
all the other projects will not have this problem. This has been happening since 
RC1...
Comment 1 Olivier Thomann CLA 2004-06-12 12:40:41 EDT
Could you please try with -vmargs -Xj9 on the command line?
Comment 2 Ed Merks CLA 2004-06-12 18:37:06 EDT
Yes,it runs better that way.  I should remember to always set that for the IBM 
JDK...