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

HeadResource throws NullPointerException for resource types other than <link> and <script>

    Details

      Description

      Steps to Reproduce:

      1. Deploy the icefaces3-ipc-ajax-push portlet

      2. Add the "ICEfaces3 IPC Ajax Push - Customers" and "ICEfaces3 IPC Ajax Push - Bookings" portlets to the portal page

      3. Reload the page

      If the bug still exists, then the following exception will occur:

      java.lang.NullPointerException
      at com.liferay.faces.bridge.renderkit.html_basic.HeadResource.initialize(HeadResource.java:80)
      at com.liferay.faces.bridge.renderkit.html_basic.HeadResource.<init>(HeadResource.java:75)
      at com.liferay.faces.bridge.container.liferay.LiferaySharedPageTop$SharedPageTopHandler.startElement(LiferaySharedPageTop.java:203)
      at com.liferay.faces.util.xml.XMLReaderImpl.parse(XMLReaderImpl.java:223)
      at com.liferay.faces.util.xml.XMLReaderImpl.parse(XMLReaderImpl.java:86)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
      at com.liferay.faces.bridge.container.liferay.LiferaySharedPageTop.<init>(LiferaySharedPageTop.java:81)
      at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayCompatImpl.afterPhase(PortletContainerLiferayCompatImpl.java:66)
      at com.liferay.faces.bridge.event.PortletContainerProxyPhaseListener.afterPhase(PortletContainerProxyPhaseListener.java:40)
      at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:227)
      at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
      at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:112)
      at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
      at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)

      The reason why the NullPointerException is thrown is because ICEpush adds a <style>...</style> resource that is not based on a URL:

      <style type="text/css">
      .ice-blockui-overlay {position: absolute;background-color: white;z-index: 28000;opacity: 0.22;filter: alpha(opacity = 22);}
      .ice-status-indicator-overlay {position: absolute;background-color: white;z-index: 28000;opacity: 0.22;filter: alpha(opacity = 22);}
      </style>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  liferay-faces-2.1.4-ga5
                  liferay-faces-2.2.4-ga5
                  liferay-faces-3.0.4-legacy-ga5
                  liferay-faces-3.0.4-ga5
                  liferay-faces-3.1.4-ga5
                  liferay-faces-3.2.4-ga5