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 125844 - NullPointerException at org.netbeans.modules.web.jsf.refactoring.Occurrences.getPackageOccurrences
Summary: NullPointerException at org.netbeans.modules.web.jsf.refactoring.Occurrences....
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ potingwu
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 116418
Blocks:
  Show dependency tree
 
Reported: 2008-01-23 13:55 UTC by adosoniu
Modified: 2008-03-21 17:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 21758


Attachments
stacktrace (850 bytes, text/plain)
2008-01-23 13:55 UTC, adosoniu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adosoniu 2008-01-23 13:55:42 UTC
Build: NetBeans IDE 6.0 (Build 200711261600)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Windows XP, 5.1, x86

User Comments: 
I tried to rename a package name from rad to fact.
Comment 1 adosoniu 2008-01-23 13:55:47 UTC
Created attachment 55429 [details]
stacktrace
Comment 2 _ potingwu 2008-01-23 17:33:21 UTC
Please give your reproduce steps and/or attach the project that will reproduce this issue.

I think this is not a project that originally created by NetBeans IDE. Please see also issue#116418. Does the workaround
in issue#116418 work for you? I.e., remove the namespace of your faces-config.xml file.
Comment 3 _ potingwu 2008-01-23 22:01:59 UTC
I have confirmed with the reporter that the faces-config.xml file does contain
xmlns="http://java.sun.com/JSF/Configuration"! Removing it will resolve this issue.
Comment 4 _ potingwu 2008-03-21 17:22:35 UTC
As discussed with Petr Pisl, the solution should follow xml specification. Which means that if there is an element
defining a namespace, then all subelements without a namespace has the same. Therefore, we will always use the namepsace
that appears in the <faces-config> for the comparison. I.e., the getQName() method has been restructured.

    changeset a4c7ae2ae10c in main
    details: http://hg.netbeans.org/main?cmd=changeset;node=a4c7ae2ae10c

    changeset 3ce9b72283dd in main
    details: http://hg.netbeans.org/main?cmd=changeset;node=3ce9b72283dd

Please see also issue#116418.