java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When loading a page with icepush.jar in the app I get a 2010-06-15 11:20:47,910 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Greetings]] (http-127.0.0.1-8080-1) Session event listener threw exception: java.lang.RuntimeException: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:188) [:] at org.icefaces.push.servlet.ServletEnvironmentListener.sessionCreated(ServletEnvironmentListener.java:43) [:] at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:367) [:] at org.apache.catalina.session.StandardSession.setId(StandardSession.java:341) [:] at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:857) [:] at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291) [:] at org.apache.catalina.connector.Request.doGetSession(Request.java:2587) [:] at org.apache.catalina.connector.Request.getSession(Request.java:2297) [:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:841) [:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:852) [:] at org.jboss.weld.servlet.ServletLifecycle.restoreSessionContext(ServletLifecycle.java:115) [:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:101) [:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182) [:1.0.2.SNAPSHOT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:180) [:] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR2] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR2] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93) [:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:] at java.lang.Thread.run(Thread.java:619) [:1.6.0_20] Caused by: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:186) [:] ... 28 more I'm not shouting *BUG* since it works in 6.0M3 and it *is* a SNAPSHOT, I'm merely tracking down what has changed. Looking at the source it comes from public static void notifySessionStartup(HttpSession session) { SessionDispatcher sessionDispatcher = lookupSessionDispatcher(session.getServletContext()); try { sessionDispatcher.checkSession(session); } catch (Exception e) { throw new RuntimeException(e); } } where the sessionDispatcher is null, I don't see how getting the attr from the SessionContext could fail so how could it fail setting it?
    via by Nicklas Karlsson,
  • When loading a page with icepush.jar in the app I get a 2010-06-15 11:20:47,910 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Greetings]] (http-127.0.0.1-8080-1) Session event listener threw exception: java.lang.RuntimeException: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:188) [:] at org.icefaces.push.servlet.ServletEnvironmentListener.sessionCreated(ServletEnvironmentListener.java:43) [:] at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:367) [:] at org.apache.catalina.session.StandardSession.setId(StandardSession.java:341) [:] at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:857) [:] at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291) [:] at org.apache.catalina.connector.Request.doGetSession(Request.java:2587) [:] at org.apache.catalina.connector.Request.getSession(Request.java:2297) [:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:841) [:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:852) [:] at org.jboss.weld.servlet.ServletLifecycle.restoreSessionContext(ServletLifecycle.java:115) [:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:101) [:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182) [:1.0.2.SNAPSHOT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:180) [:] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR2] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR2] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93) [:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:] at java.lang.Thread.run(Thread.java:619) [:1.6.0_20] Caused by: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:186) [:] ... 28 more I'm not shouting *BUG* since it works in 6.0M3 and it *is* a SNAPSHOT, I'm merely tracking down what has changed. Looking at the source it comes from public static void notifySessionStartup(HttpSession session) { SessionDispatcher sessionDispatcher = lookupSessionDispatcher(session.getServletContext()); try { sessionDispatcher.checkSession(session); } catch (Exception e) { throw new RuntimeException(e); } } where the sessionDispatcher is null, I don't see how getting the attr from the SessionContext could fail so how could it fail setting it?
    via by Nicklas Karlsson,
    • java.lang.RuntimeException: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:188)[:] at org.icefaces.push.servlet.ServletEnvironmentListener.sessionCreated(ServletEnvironmentListener.java:43)[:] at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:367)[:] at org.apache.catalina.session.StandardSession.setId(StandardSession.java:341)[:] at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:857)[:] at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291)[:] at org.apache.catalina.connector.Request.doGetSession(Request.java:2587)[:] at org.apache.catalina.connector.Request.getSession(Request.java:2297)[:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:841)[:] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:852)[:] at org.jboss.weld.servlet.ServletLifecycle.restoreSessionContext(ServletLifecycle.java:115)[:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.ServletLifecycle.beginRequest(ServletLifecycle.java:101)[:1.0.2.SNAPSHOT] at org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:182)[:1.0.2.SNAPSHOT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:180)[:] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)[:6.0.0-SNAPSHOT] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)[:1.1.0.CR2] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)[:1.1.0.CR2] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)[:6.0.0-SNAPSHOT] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93)[:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[:] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[:] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)[:6.0.0-SNAPSHOT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[:] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)[:6.0.0-SNAPSHOT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)[:] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[:] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)[:] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)[:] at java.lang.Thread.run(Thread.java:619)[:1.6.0_20] Caused by: java.lang.NullPointerException at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:186)[:] ... 28 more
    No Bugmate found.