Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 127528 - java.lang.NullPointerException
Product: obsolete
Classification: Unclassified
Component: visualweb
All All
: P2 (vote)
: 6.x
Assigned To: Ch Nguyen
Depends on:
  Show dependency treegraph
Reported: 2008-02-16 00:45 UTC by Jesse Glick
Modified: 2008-03-07 18:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT

stacktrace (890 bytes, text/plain)
2008-02-17 02:30 UTC, uroboros
stacktrace (890 bytes, text/plain)
2008-02-21 04:43 UTC, samirbahyeldin

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-02-16 00:45:01 UTC
Build: NetBeans IDE Dev (Build 200709120000)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05
OS: Linux, 2.6.22-ARCH, i386
User comments: I've installed post-release examaples for visual jsf 
STACKTRACE: (first 10 lines)
        at org.netbeans.core.startup.NbInstaller.loadCode(
        at org.netbeans.core.startup.NbInstaller.load(
        at org.netbeans.ModuleManager.enable(
        at org.netbeans.core.startup.ModuleList.installNew(
        at org.netbeans.core.startup.ModuleList.trigger(
        at org.netbeans.core.startup.ModuleSystem.restore(
        at org.netbeans.core.startup.Main.getModuleSystem(
        at org.netbeans.core.startup.Main.start(

[See the 94 (!) duplicates and associated comments in the exception reporter. Marking P2 due to the frequency. -jglick]
Comment 1 uroboros 2008-02-17 02:30:52 UTC
Build: NetBeans IDE 6.0.1 (Build 200801291616)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: SunOS, 5.10, x86

User Comments: 
Comment 2 uroboros 2008-02-17 02:30:55 UTC
Created attachment 56783 [details]
Comment 3 Ch Nguyen 2008-02-20 15:55:12 UTC
I cannot reproduce this in a development main build.
Comment 4 Ch Nguyen 2008-02-20 15:57:07 UTC
I cannot reproduce this in a development main build. I installed the visualweb post release from the update center and
didn't see the NPE in the log.  Please provide the reproducible steps.  Thanks.
Comment 5 Jesse Glick 2008-02-20 17:41:18 UTC
Clearly there are not going to be any steps to reproduce, it is just an exception known to be thrown a lot. Since a NPE
always indicates a bug in your code, figure out which vars might possibly be null and defend against that, or if you
believe it is "impossible", put in assert statements to trace what went wrong.
Comment 6 samirbahyeldin 2008-02-21 04:43:10 UTC
Build: NetBeans IDE 6.0.1 (Build 200801291616)
VM: Java HotSpot(TM) Client VM, 1.5.0_10-b03
OS: Windows XP, 5.1, x86

User Comments: 
Comment 7 samirbahyeldin 2008-02-21 04:43:13 UTC
Created attachment 56959 [details]
Comment 8 Ch Nguyen 2008-02-21 08:06:40 UTC
I still can't reproduce this NPE.  However, I fixed up the code anyway after analyzing where there is a need to check
for null pointer. I also got some good feedback from Quy on the code change review.  Here is the changeset info:

changeset:   10657:c3c4c1c2c7b3
user:        Chau Nguyen <>
date:        Wed Feb 20 22:29:22 2008 -0800
files:       visualweb.samples.postrel/nbproject/project.xml
Fix bug 127528 - NPE (without reproducible steps)

While fixing this bug I also discovered that there is another condition where the complib might not be re-registered in
the IDE once removed from the Library Manager.   For more info on that issue, you can follow this issue 127969.
Comment 9 Karthikeyan Rajeswaran 2008-03-07 18:47:12 UTC
The fix is in contrib module and so cannot be part of 6.0.1 patch2 (only stable modules are part of sustaining branch).
Thus removing release601_fixes_candidate2 keyword. 

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo