Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2910

NullPointerException thrown by BodyRendererBridgeImpl.java when the PrimeFaces mobile renderkit is specified in WEB-INF/faces-config.xml

Details

    Description

      This problem was first reported in the Liferay Faces forums in the thread titled Configuration for Faces Flow.

      Steps to Reproduce

      1. Start Liferay Portal 6.2

      2. Checkout the 4.x branch of liferay-faces-bridge-impl.git

      3. Build the source with "mvn clean install"

      4. cd demo/primefaces-applicant-portlet

      5. Edit src/main/webapp/WEB-INF/faces-config.xml and add the following:

      <default-render-kit-id>PRIMEFACES_MOBILE</default-render-kit-id>
      

      6. Deploy the primefaces-applicant-portlet to Liferay Portal 6.2

      7. Add the primefaces-applicant-portlet to a portal page

      8. Reload the portal page

      Expected Results

      The primefaces-applicant-portlet displays normally.

      Actual Results

      The following stacktrace appears in the server log:

      16:59:58,827 ERROR [http-nio-8443-exec-2][render_portlet_jsp:132] null
      java.lang.NullPointerException
      at com.liferay.faces.bridge.renderkit.html_basic.internal.BodyRendererBridgeImpl.encodeBegin(BodyRendererBridgeImpl.java:115)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:865)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)
      at javax.faces.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:146)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)
      at com.liferay.faces.bridge.application.internal.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:95)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      

      Attachments

        Issue Links

          Activity

            People

              kyle.stiemann Kyle Stiemann (Inactive)
              neil.griffin Neil Griffin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  bridge-impl-3.1.0
                  bridge-impl-4.1.0