NPE in faces component when running netui-jsf sample with MyFaces
-----------------------------------------------------------------

                 Key: BEEHIVE-1194
                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1194
             Project: Beehive
          Issue Type: Bug
          Components: Samples
    Affects Versions: 1.0.2
            Reporter: Carlin Rogers
            Priority: Minor
             Fix For: V.Next


I noticed a NPE in javax.faces.component.UIComponentBase.getClientId() while 
running the netui-jsf sample with MyFaces 1.1.4.

To reproduce, build and deploy the sample using MyFaces (I used 1.1.4). Then 
after hitting the home page of the app (physician search), continue on and 
complete a search. From the list of results, click the "Details" link for a 
given physician. The details page is displayed correctly but a log file or 
console window will show the following NPE...

java.lang.NullPointerException: context
        at 
javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:191)
        at javax.faces.component.UIData.getClientId(UIData.java:463)
        at javax.faces.component.UIData.setRowIndex(UIData.java:243)
        at javax.faces.component.UIData.broadcast(UIData.java:517)
        at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
        at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
        at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
        at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:385)
        at 
org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to