This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 73690

Summary: NPE from FileScanner
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
URL: http://blogs.sun.com/roller/page/chengfang?entry=nullpointerexception_npe_from_filescanner_removefromrepository
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 73679    
Attachments: a jar file containing message.log.1 and message.log.2

Description Jan Becicka 2006-03-17 08:02:03 UTC
Hi, Netbeans Experts,

I am using nb5, solaris 10 sparc, jdk 5.0.6/5.0.4.  I keep getting this
NPE shortly after opening a project.  This doesn't seem to happen with
nb4.1.  Unfortunately after I migrated my project to nb 5.0, I can no
longer go back to 4.1

One symptom is, it doesn't show any method name autocomplate for JDK
classes.  For instance, after I type

System.

I expect to see a popup window with entries like "out", but all I see is
"class"

After I type "this is a string", followed by a dot, I expect to see a list
of methods like "indexOf, trim...", but all I see are methods only from
java.lang.Object

I searched in netbeans.org website, and couldn't find anything similar.
Any help is greatly appreciated.

The next thing I will try, is to reinstall nb.  But I'm not sure if this
will make any difference.  My log attached.

*********** Exception occurred ************ at 9:32 PM on Mar 15, 2006
java.lang.NullPointerException
        at
org.netbeans.modules.javacore.scanning.FileScanner.removeFromRepository(FileScanner.java:194)
        at
org.netbeans.modules.javacore.scanning.FileScanner.scan(FileScanner.java:179)
[catch] at
org.netbeans.modules.javacore.JMManager.scanFiles(JMManager.java:1092)
        at
org.netbeans.modules.javacore.JMManager.resolveCPRoot(JMManager.java:1006)
        at
org.netbeans.modules.javacore.JMManager.resolveCodebases(JMManager.java:815)
        at
org.netbeans.modules.javacore.JMManager$2.run(JMManager.java:769)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 cf126330 2006-03-19 13:04:49 UTC
Created attachment 29302 [details]
a jar file containing message.log.1 and message.log.2
Comment 2 Jiri Prox 2006-05-09 13:00:58 UTC
*** Issue 75946 has been marked as a duplicate of this issue. ***
Comment 3 Jan Becicka 2006-10-26 16:28:14 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 4 Quality Engineering 2007-09-20 09:57:21 UTC
Reorganization of java component