Atmosphere/atmosphere — Issue #44: is it possible to hide this exception on Jetty shutdown.
Author: survivant
Created: 2011-10-24 13:29:06+00:00
State: open

The atmosphere application throw a exception on resume when Jetty shutdown using websocket.

09:25:53.405 [Thread-1] DEBUG o.a.cpr.AsynchronousProcessor - failed on resume: AtmosphereResourceImpl{, action=org.atmosphere.cpr.AtmosphereServlet$Action@17e5307, broadcaster=org.atmosphere.cpr.DefaultBroadcaster, cometSupport=org.atmosphere.container.Servlet30CometSupportWithWebSocket@7cf883, serializer=null, isInScope=true, useWriter=true, listeners=[]}
java.lang.IllegalStateException: No SessionManager
at org.eclipse.jetty.server.Request.getSession(Request.java:1151) ~[na:na]
at org.eclipse.jetty.server.Request.getSession(Request.java:1130) ~[na:na]
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:267) ~[servlet-api-3.0.jar:na]
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:267) ~[servlet-api-3.0.jar:na]
at org.atmosphere.container.Servlet30CometSupport.action(Servlet30CometSupport.java:160) ~[atmosphere-runtime-0.8.0-RC2-SNAPSHOT.jar:0.8.0-RC2-SNAPSHOT]
at org.atmosphere.container.Servlet30CometSupport.action(Servlet30CometSupport.java:63) ~[atmosphere-runtime-0.8.0-RC2-SNAPSHOT.jar:0.8.0-RC2-SNAPSHOT]
at org.atmosphere.cpr.AtmosphereResourceImpl.resume(AtmosphereResourceImpl.java:184) ~[atmosphere-runtime-0.8.0-RC2-SNAPSHOT.jar:0.8.0-RC2-SNAPSHOT]
at org.atmosphere.cpr.AsynchronousProcessor.shutdown(AsynchronousProcessor.java:471) ~[atmosphere-runtime-0.8.0-RC2-SNAPSHOT.jar:0.8.0-RC2-SNAPSHOT]
at org.atmosphere.cpr.AtmosphereServlet.destroy(AtmosphereServlet.java:834) [atmosphere-runtime-0.8.0-RC2-SNAPSHOT.jar:0.8.0-RC2-SNAPSHOT]