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

NullPointerException in ResourceImpl.getRequestPath() when the FacesServlet is invoked to get a resource

    Details

      Description

      Steps to Reproduce:

      1. Add the following to the primefaces5-portlet WEB-INF/web.xml descriptor:

      <servlet-mapping>
      	<servlet-name>Faces Servlet</servlet-name>
      	<url-pattern>*.resource</url-pattern>
      </servlet-mapping>
      

      And the following to the WEB-INF/liferay-portlet.xml descriptor:

      <header-portlet-css>/javax.faces.resource/fileupload/fileupload.css.resource?ln=primefaces&amp;ver=5.2</header-portlet-css>
      

      2. Deploy the primefaces5-portlet

      4. Add the PrimeFaces5 portlet to a portal page

      5. Reload the page

      If the bug still exists, then a NullPointerException will be thrown by ResourceImpl.getRequestPath() because the BridgeContext ThreadLocal singleton is null when the FacesServlet is invoked.

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-impl-3.0.0
                bridge-impl-4.0.0
                bridge-impl-5.0.0