Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1194

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0.2
    • V.Next
    • Samples
    • None

    Description

      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)
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            crogers Howard Carlin Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: