java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Deryk Sinotte | 3 years ago
  1. 0

    Push doesn't seem to be working properly in portlets. When I initially load up the chat portlet, I'll get the following exception almost right away: Exception in thread "Timer-2" java.lang.NullPointerException at com.liferay.faces.bridge.container.PortletContainerImpl.getRequestParameter(PortletContainerImpl.java:528) at com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:107) at com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:37) at com.liferay.faces.util.map.AbstractPropertyMap.get(AbstractPropertyMap.java:106) at org.icefaces.impl.push.servlet.ProxyHttpServletRequest.getParameter(ProxyHttpServletRequest.java:169) at org.icepush.servlet.ServletRequest.checkExistenceOf(ServletRequest.java:260) at org.icepush.servlet.ServletRequest.getParameter(ServletRequest.java:150) at org.icepush.servlet.ServletRequest.getParameterAsLong(ServletRequest.java:189) at org.icepush.servlet.ServletPushRequest.getHeartbeatInterval(ServletPushRequest.java:53) at org.icepush.servlet.ServletPushRequestResponse.getHeartbeatInterval(ServletPushRequestResponse.java:62) at org.icepush.http.standard.PushRequestProxy.getHeartbeatInterval(PushRequestProxy.java:45) at org.icepush.BlockingConnectionServer.resetTimeout(BlockingConnectionServer.java:247) at org.icepush.BlockingConnectionServer.sendNotifications(BlockingConnectionServer.java:179) at org.icepush.BlockingConnectionServer.receive(BlockingConnectionServer.java:292) at org.icepush.LocalNotificationBroadcaster$BroadcastTask.run(LocalNotificationBroadcaster.java:77) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) After that, chat is operational but the updates only occur during heartbeats, not when a message is sent. The exception only occurs the first time the page is rendered. If I switch to a different portlet page (like the Welcome page with no ICEfaces portlets) and then switch back, I don't see the exception but push still has the same behaviour where updates only occur during heartbeats. I logged the various parameters that were being requested to see if there was something obvious. Perhaps the view and/or simulator parameters are important clues: ProxyHttpServletRequest.getParameter: view : null ProxyHttpServletRequest.getParameter: simulator : null ProxyHttpServletRequest.getParameter: view : null ProxyHttpServletRequest.getParameter: simulator : null ProxyHttpServletRequest.getParameter: ice.push.browser : 2fuhtai5tun ProxyHttpServletRequest.getParameter: ice.push.browser : 2fuhtai5tun ProxyHttpServletRequest.getParameter: ice.sendConfiguration : null ProxyHttpServletRequest.getParameter: ice.pushid : v24ua682 ProxyHttpServletRequest.getParameter: ice.push.heartbeat : 15000 ProxyHttpServletRequest.getParameter: ice.push.heartbeat : 15000 ProxyHttpServletRequest.getParameter: ice.pushid : v24ua682 I've also seen this occasionally but it's not consistent and is could be app related or related to the issue above. Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[http-bio-8080-exec-20,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:284) at org.icefaces.application.PushRenderer.render(PushRenderer.java:193) at org.icefaces.sample.portlet.chat.ChatRoom.addMessage(ChatRoom.java:90) at org.icefaces.sample.portlet.chat.ChatRoom.removeParticipant(ChatRoom.java:64) at org.icefaces.sample.portlet.chat.Participant.logout(Participant.java:130)

    ICEsoft JIRA Issue Tracker | 3 years ago | Deryk Sinotte
    java.lang.NullPointerException
  2. 0

    Push doesn't seem to be working properly in portlets. When I initially load up the chat portlet, I'll get the following exception almost right away: Exception in thread "Timer-2" java.lang.NullPointerException at com.liferay.faces.bridge.container.PortletContainerImpl.getRequestParameter(PortletContainerImpl.java:528) at com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:107) at com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:37) at com.liferay.faces.util.map.AbstractPropertyMap.get(AbstractPropertyMap.java:106) at org.icefaces.impl.push.servlet.ProxyHttpServletRequest.getParameter(ProxyHttpServletRequest.java:169) at org.icepush.servlet.ServletRequest.checkExistenceOf(ServletRequest.java:260) at org.icepush.servlet.ServletRequest.getParameter(ServletRequest.java:150) at org.icepush.servlet.ServletRequest.getParameterAsLong(ServletRequest.java:189) at org.icepush.servlet.ServletPushRequest.getHeartbeatInterval(ServletPushRequest.java:53) at org.icepush.servlet.ServletPushRequestResponse.getHeartbeatInterval(ServletPushRequestResponse.java:62) at org.icepush.http.standard.PushRequestProxy.getHeartbeatInterval(PushRequestProxy.java:45) at org.icepush.BlockingConnectionServer.resetTimeout(BlockingConnectionServer.java:247) at org.icepush.BlockingConnectionServer.sendNotifications(BlockingConnectionServer.java:179) at org.icepush.BlockingConnectionServer.receive(BlockingConnectionServer.java:292) at org.icepush.LocalNotificationBroadcaster$BroadcastTask.run(LocalNotificationBroadcaster.java:77) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) After that, chat is operational but the updates only occur during heartbeats, not when a message is sent. The exception only occurs the first time the page is rendered. If I switch to a different portlet page (like the Welcome page with no ICEfaces portlets) and then switch back, I don't see the exception but push still has the same behaviour where updates only occur during heartbeats. I logged the various parameters that were being requested to see if there was something obvious. Perhaps the view and/or simulator parameters are important clues: ProxyHttpServletRequest.getParameter: view : null ProxyHttpServletRequest.getParameter: simulator : null ProxyHttpServletRequest.getParameter: view : null ProxyHttpServletRequest.getParameter: simulator : null ProxyHttpServletRequest.getParameter: ice.push.browser : 2fuhtai5tun ProxyHttpServletRequest.getParameter: ice.push.browser : 2fuhtai5tun ProxyHttpServletRequest.getParameter: ice.sendConfiguration : null ProxyHttpServletRequest.getParameter: ice.pushid : v24ua682 ProxyHttpServletRequest.getParameter: ice.push.heartbeat : 15000 ProxyHttpServletRequest.getParameter: ice.push.heartbeat : 15000 ProxyHttpServletRequest.getParameter: ice.pushid : v24ua682 I've also seen this occasionally but it's not consistent and is could be app related or related to the issue above. Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[http-bio-8080-exec-20,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:284) at org.icefaces.application.PushRenderer.render(PushRenderer.java:193) at org.icefaces.sample.portlet.chat.ChatRoom.addMessage(ChatRoom.java:90) at org.icefaces.sample.portlet.chat.ChatRoom.removeParticipant(ChatRoom.java:64) at org.icefaces.sample.portlet.chat.Participant.logout(Participant.java:130)

    ICEsoft JIRA Issue Tracker | 3 years ago | Deryk Sinotte
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.liferay.faces.bridge.container.PortletContainerImpl.getRequestParameter()
    2. Liferay Faces Bridge
      RequestParameterMapImpl.getProperty
      1. com.liferay.faces.bridge.container.PortletContainerImpl.getRequestParameter(PortletContainerImpl.java:528)
      2. com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:107)
      3. com.liferay.faces.bridge.context.map.RequestParameterMapImpl.getProperty(RequestParameterMapImpl.java:37)
      3 frames
    3. com.liferay.faces
      AbstractPropertyMap.get
      1. com.liferay.faces.util.map.AbstractPropertyMap.get(AbstractPropertyMap.java:106)
      1 frame
    4. org.icefaces.impl
      ProxyHttpServletRequest.getParameter
      1. org.icefaces.impl.push.servlet.ProxyHttpServletRequest.getParameter(ProxyHttpServletRequest.java:169)
      1 frame
    5. org.icepush.servlet
      ServletPushRequestResponse.getHeartbeatInterval
      1. org.icepush.servlet.ServletRequest.checkExistenceOf(ServletRequest.java:260)
      2. org.icepush.servlet.ServletRequest.getParameter(ServletRequest.java:150)
      3. org.icepush.servlet.ServletRequest.getParameterAsLong(ServletRequest.java:189)
      4. org.icepush.servlet.ServletPushRequest.getHeartbeatInterval(ServletPushRequest.java:53)
      5. org.icepush.servlet.ServletPushRequestResponse.getHeartbeatInterval(ServletPushRequestResponse.java:62)
      5 frames
    6. org.icepush.http
      PushRequestProxy.getHeartbeatInterval
      1. org.icepush.http.standard.PushRequestProxy.getHeartbeatInterval(PushRequestProxy.java:45)
      1 frame
    7. org.icepush
      LocalNotificationBroadcaster$BroadcastTask.run
      1. org.icepush.BlockingConnectionServer.resetTimeout(BlockingConnectionServer.java:247)
      2. org.icepush.BlockingConnectionServer.sendNotifications(BlockingConnectionServer.java:179)
      3. org.icepush.BlockingConnectionServer.receive(BlockingConnectionServer.java:292)
      4. org.icepush.LocalNotificationBroadcaster$BroadcastTask.run(LocalNotificationBroadcaster.java:77)
      4 frames
    8. Java RT
      TimerThread.run
      1. java.util.TimerThread.mainLoop(Timer.java:555)
      2. java.util.TimerThread.run(Timer.java:505)
      2 frames