java.lang.NullPointerException

ZK-Tracker | kretes | 3 years ago
  1. 0

    ZK Does not set session in SessionCtrl when handling a Portlet Ajax request - which effects in no session available for componentes, which can turn into NPE in some components. our case is: java.lang.NullPointerException at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.smartUpdate(LiveListboxDataLoader.java:266) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.access$100(LiveListboxDataLoader.java:60) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:287) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:278) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600) at org.zkoss.zk.ui.http.DHtmlLayoutPortlet.serveResource(DHtmlLayoutPortlet.java:205) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71) at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) After debugging the code we found out that in DHtmlLayoutPortlet in serverResource method there is no call to: SessionsCtrl.setCurrent(sess); it is, however done in doView, but it is needed in serveResource as well.

    ZK-Tracker | 3 years ago | kretes
    java.lang.NullPointerException
  2. 0

    ZK Does not set session in SessionCtrl when handling a Portlet Ajax request - which effects in no session available for componentes, which can turn into NPE in some components. our case is: java.lang.NullPointerException at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.smartUpdate(LiveListboxDataLoader.java:266) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.access$100(LiveListboxDataLoader.java:60) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:287) at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:278) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600) at org.zkoss.zk.ui.http.DHtmlLayoutPortlet.serveResource(DHtmlLayoutPortlet.java:205) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71) at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) After debugging the code we found out that in DHtmlLayoutPortlet in serverResource method there is no call to: SessionsCtrl.setCurrent(sess); it is, however done in doView, but it is needed in serveResource as well.

    ZK-Tracker | 3 years ago | kretes
    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 org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.smartUpdate()
    2. org.zkoss.zkmax
      LiveListboxDataLoader$1.onEvent
      1. org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.smartUpdate(LiveListboxDataLoader.java:266)
      2. org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.access$100(LiveListboxDataLoader.java:60)
      3. org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:287)
      4. org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:278)
      4 frames
    3. ZK Kernel
      DHtmlLayoutPortlet.serveResource
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212)
      8. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
      9. org.zkoss.zk.ui.http.DHtmlLayoutPortlet.serveResource(DHtmlLayoutPortlet.java:205)
      9 frames
    4. Liferay Portal Service
      PortletServlet.service
      1. com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118)
      2. com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      3. com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
      3 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
      1 frame