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
Deryk Sinotte
created issue -
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #34279 | Mon Apr 08 15:03:42 MDT 2013 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/push/servlet/ProxyHttpServletRequest.java
MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/UserAgentContext.java MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/EnvUtils.java |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
I added some additional logic to help find the "user-agent" header when running with the PortletFaces Bridge.