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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4387-on-091126) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.31-15-generic, i386 Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.editor.overridden.ComputeOverriders.findReverseSourceRoots(ComputeOverriders.java:112) at org.netbeans.modules.java.editor.overridden.ComputeOverriders.reverseSourceRootsInOrder(ComputeOverriders.java:294) at org.netbeans.modules.java.editor.overridden.ComputeOverriders.computeUsers(ComputeOverriders.java:352) at org.netbeans.modules.java.editor.overridden.ComputeOverriders.processImpl(ComputeOverriders.java:217) at org.netbeans.modules.java.editor.overridden.ComputeOverriders.process(ComputeOverriders.java:173) at org.netbeans.modules.java.editor.overridden.ComputeAnnotations.computeAnnotations(ComputeAnnotations.java:114)
Created attachment 91792 [details] stacktrace
Created attachment 91863 [details] stacktrace
Created attachment 91864 [details] stacktrace
Created attachment 91877 [details] stacktrace
Created attachment 91879 [details] stacktrace
Created attachment 91882 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=162960
Seems that map returned from IndexingController.getRootDependencies() contains a null value, which it should not contain, if I understand everything correctly.
*** Bug 177785 has been marked as a duplicate of this bug. ***
*** Bug 177857 has been marked as a duplicate of this bug. ***
Created attachment 92104 [details] stacktrace
Created attachment 92105 [details] stacktrace
Created attachment 92106 [details] stacktrace
Created attachment 92107 [details] stacktrace
Created attachment 92275 [details] stacktrace
Created attachment 92301 [details] stacktrace
Created attachment 92344 [details] stacktrace Generating JSF pages from entity classes in a Maven web project.
Created attachment 92353 [details] stacktrace
According to the code in the ComputeOverriders the Map.Entry.getValue() returns null. But the value in the RU is set only in single place where it is initialized to final variable having a List. I've added a check into IndexingController which checks for null values.
Integrated logging into jet-main 492eaf9098ca
Fixed in jet-main 2901c57213c1
Integrated into 'main-golden', will be available in build *200912120559* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/492eaf9098ca User: Tomas Zezula <tzezula@netbeans.org> Log: #177763:NullPointerException at org.netbeans.modules.java.editor.overridden.ComputeOverriders.findReverseSourceRoots
Integrated into 'main-golden', will be available in build *200912121550* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2901c57213c1 User: Tomas Zezula <tzezula@netbeans.org> Log: #177763:NullPointerException at org.netbeans.modules.java.editor.overridden.ComputeOverriders.findReverseSourceRoots
*** Bug 178919 has been marked as a duplicate of this bug. ***
*** Bug 177862 has been marked as a duplicate of this bug. ***
Created attachment 93624 [details] stacktrace
*** Bug 180382 has been marked as a duplicate of this bug. ***
Created attachment 94025 [details] stacktrace
Created attachment 94121 [details] stacktrace
Created attachment 94122 [details] stacktrace
Created attachment 94126 [details] stacktrace
Created attachment 94135 [details] stacktrace
Created attachment 94478 [details] stacktrace
Created attachment 94481 [details] stacktrace
So many duplicates and no backport to 6.8?
First of all, could anyone verify if it really fix the problem? After that we can mark this for next possible patch.
Created attachment 94548 [details] stacktrace
Any chance this fix can be backported to 6.8?
Created attachment 94677 [details] stacktrace
Created attachment 94696 [details] stacktrace
Created attachment 94732 [details] stacktrace
Created attachment 94733 [details] stacktrace
Created attachment 94734 [details] stacktrace
*** Bug 169731 has been marked as a duplicate of this bug. ***
*** Bug 181016 has been marked as a duplicate of this bug. ***
*** Bug 181110 has been marked as a duplicate of this bug. ***
Please verify in trunk so it can be ported to 6.8 patch
v.
The fix has been ported into the release68_fixes branch. http://hg.netbeans.org/release68_fixes/rev/efc5689a525d
Created attachment 95241 [details] stacktrace
The NPE from JavaCustomIndexer.findDependent just happened to me in a dev build. Is that the same issue as this one? Or something else? Why is the exception reporter putting it here?
(In reply to comment #51) > The NPE from JavaCustomIndexer.findDependent just happened to me in a dev > build. Is that the same issue as this one? Or something else? Why is the Your is different, as far as I can tell - I separated it: bug #182709. > exception reporter putting it here? The root cause for this bug (in 6.8) was that a map contained null values, although it is not supposed to contain them. This was causing NPEs at three places, all of them duplicated to this bug. The stacktrace of your NPE was similar to one of the original stacktraces, e.g.: http://netbeans.org/bugzilla/attachment.cgi?id=95241 and the exception reporter probably was not able to recognize the difference. I peeked at several other stacktraces, and they all seem to belong to the original bug, so hopefully there are not many miscategorized reports.
Created attachment 95925 [details] stacktrace
Created attachment 96005 [details] stacktrace
Created attachment 96006 [details] stacktrace
*** Bug 182746 has been marked as a duplicate of this bug. ***