java.lang.NullPointerException

ZK-Tracker | kretes | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 4 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 | 4 years ago | kretes
    java.lang.NullPointerException
  3. 0

    perl Regular Expression to find Java StackTrace by keyword

    Stack Overflow | 6 years ago | Gofrolist
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    openmeetings-user - [openmeetings-user] Install problems on centos 5.2 - msg#00087 - Recent Discussion OSDir.com

    osdir.com | 2 years ago
    java.lang.NullPointerException: null at org.openmeetings.app.hibernate.utils.HibernateUtil.createSession(HibernateUtil.java: 35) [openmeetings.jar:na] at org.openmeetings.app.data.basic.Configurationmanagement.getConfKey(Configurationmanagement.java: 50) [openmeetings.jar:na] at org.openmeetings.servlet.outputhandler.DefaultIndex.handleRequest(DefaultIndex.java: 38) [openmeetings.jar:na] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(VelocityViewServlet.java: 541) [velocity-tools-view-1.3.jar:1.3] at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java: 507) [velocity-tools-view-1.3.jar:1.3]

    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