ICEfaces
  1. ICEfaces
  2. ICE-9142

Request for "user-agent" header causes NPE with PortletFaces Bridge

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Portal portlet Liferay 5 PortletFaces Bridge

      Description

      When testing the latest ICEfaces release against Liferay 5 + PortletFaces Bridge, the follow exception is thrown during initial page load:


      16:13:45,687 ERROR [jsp:165] java.lang.NullPointerException
      at org.icefaces.util.UserAgentInfo.isIphone(UserAgentInfo.java:82)
      at org.icefaces.util.UserAgentInfo.isIOS(UserAgentInfo.java:86)
      at org.icefaces.util.UserAgentContext.detectOS(UserAgentContext.java:72)
      at org.icefaces.util.UserAgentContext.<init>(UserAgentContext.java:59)
      at org.icefaces.util.UserAgentContext.getInstance(UserAgentContext.java:217)
      at org.icefaces.impl.event.RestoreResourceDependencies.processEvent(RestoreResourceDependencies.java:40)
      at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
      at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2161)
      at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2137)
      at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
      at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
      at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:670)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:818)
      at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:954)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

        Activity

        Hide
        Deryk Sinotte added a comment -

        I added some additional logic to help find the "user-agent" header when running with the PortletFaces Bridge.

        Show
        Deryk Sinotte added a comment - I added some additional logic to help find the "user-agent" header when running with the PortletFaces Bridge.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: