Details
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)
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
I added some additional logic to help find the "user-agent" header when running with the PortletFaces Bridge.