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

Summary: NullPointerException at org.netbeans.modules.web.jsf.refactoring.Occurrences.getPackageOccurrences
Product: javaee Reporter: adosoniu <adosoniu>
Component: JSFAssignee: _ potingwu <potingwu>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=21758
Issue Type: DEFECT Exception Reporter: 21758
Bug Depends on: 116418    
Bug Blocks:    
Attachments: stacktrace

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.