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 142157 - NullPointerException at org.netbeans.modules.apisupport.project.Util.findSubElements
Summary: NullPointerException at org.netbeans.modules.apisupport.project.Util.findSubE...
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 143714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-29 22:28 UTC by pzajac
Modified: 2010-02-16 13:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 80721


Attachments
stacktrace (2.00 KB, text/plain)
2008-09-15 12:41 UTC, Jan Lahoda
Details
stacktrace (1.42 KB, text/plain)
2009-01-08 16:43 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2008-07-29 22:28:36 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.apisupport.project.Util.findSubElements(Util.java:186)
        at org.netbeans.modules.apisupport.project.queries.SourceForBinaryImpl.findSourceRoots(SourceForBinaryImpl.java:110)
        at org.netbeans.modules.java.project.ProjectSourceForBinaryQuery.findSourceRoots(ProjectSourceForBinaryQuery.java:67)
        at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots(SourceForBinaryQuery.java:90)
        at org.netbeans.modules.debugger.jpda.ant.JPDAStart.convertToSourcePath(JPDAStart.java:456)
        at org.netbeans.modules.debugger.jpda.ant.JPDAStart.createSourcePath(JPDAStart.java:394)
Comment 1 Jesse Glick 2008-07-29 23:04:53 UTC
Strange. Did the parent's children list change in another thread? Any idea how to reproduce?
Comment 2 pzajac 2008-07-29 23:11:33 UTC
No idea how to reproduce it. The exception was thrown only one time. 
Comment 3 Jesse Glick 2008-07-29 23:28:13 UTC
Might be a race condition. Do you happen to remember if you were modifying project properties at the time?
Comment 4 pzajac 2008-07-30 07:34:01 UTC
No, I didn't change project properties. I was debugging the nbm project. 
Comment 5 rmichalsky 2008-08-19 10:35:48 UTC
*** Issue 143714 has been marked as a duplicate of this issue. ***
Comment 6 rmichalsky 2008-08-29 13:09:03 UTC
Cannot reproduce and there seems to be no apparent chance of race condition. Needs further investigation.
Comment 7 Jan Lahoda 2008-09-15 12:41:14 UTC
Build: NetBeans IDE Dev (Build 20080911152933)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.apisupport.project.Util.findSubElements(Util.java:186)
        at org.netbeans.modules.apisupport.project.queries.SourceForBinaryImpl.findSourceRoots(SourceForBinaryImpl.java:114)
        at org.netbeans.modules.java.project.ProjectSourceForBinaryQuery.findSourceRoots2(ProjectSourceForBinaryQuery.java:83)
        at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots2(SourceForBinaryQuery.java:117)
        at org.netbeans.modules.java.source.classpath.GlobalSourcePath.createResources(GlobalSourcePath.java:298)
        at org.netbeans.modules.java.source.classpath.GlobalSourcePath.access$1200(GlobalSourcePath.java:85)
Comment 8 Jan Lahoda 2008-09-15 12:41:18 UTC
Created attachment 69861 [details]
stacktrace
Comment 9 J Bachorik 2009-01-08 16:43:15 UTC
Build: NetBeans IDE 6.5 (Build 081124)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.apisupport.project.Util.findSubElements(Util.java:181)
        at org.netbeans.modules.apisupport.project.queries.SourceForBinaryImpl.findSourceRoots(SourceForBinaryImpl.java:114)
        at org.netbeans.modules.java.project.ProjectSourceForBinaryQuery.findSourceRoots2(ProjectSourceForBinaryQuery.java:83)
        at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots2(SourceForBinaryQuery.java:117)
        at org.netbeans.modules.java.source.classpath.GlobalSourcePath.createResources(GlobalSourcePath.java:308)
        at org.netbeans.modules.java.source.classpath.GlobalSourcePath.access$1200(GlobalSourcePath.java:85)
Comment 10 J Bachorik 2009-01-08 16:43:20 UTC
Created attachment 75594 [details]
stacktrace
Comment 11 Exceptions Reporter 2009-05-06 16:17:39 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=80721
Comment 12 Jesse Glick 2010-02-16 13:44:18 UTC
NodeList.item(int) is returning null. Perhaps a Xerces bug, but no idea how to reproduce or diagnose further.