Revision history [back]

click to hide/show revision 1
initial version

answered 2008-09-04 07:15:39 +0800

tomyeh gravatar image tomyeh

http://blog.zkoss.org ZK Team

After digging a bit, it seems Jetty calls HttpSessionListener.sessionDestroyed twice in this case. We'll try to work around this. Please follow http://sourceforge.net/tracker/index.php?func=detail&aid=2092632&group_id=152762&atid=785191

The stack trace we found is as follows. INFO | jvm 1 | 2008/09/04 12:34:26 | java.lang.Exception: Stack trace INFO | jvm 1 | 2008/09/04 12:34:26 | at java.lang.Thread.dumpStack(Unknown Source) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.WebManager.onSessionDestroyed(WebManager.java:295) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.HttpSessionListener.sessionDestroyed(HttpSessionListener.java:33) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager.removeSession(AbstractSessionManager.java:665) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:938) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.HashSessionManager$Session.invalidate(HashSessionManager.java:500) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.SimpleSession.invalidateNow(SimpleSession.java:286) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.doDeactivate(UiEngineImpl.java:1513) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1066) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:484) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:372) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:381) INFO | jvm 1 | 2008/09/04 12:34:26 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) INFO | jvm 1 | 2008/09/04 12:34:26 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.Server.handle(Server.java:324) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

INFO | jvm 1 | 2008/09/04 12:34:26 | java.lang.Exception: Stack trace INFO | jvm 1 | 2008/09/04 12:34:26 | at java.lang.Thread.dumpStack(Unknown Source) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.WebManager.onSessionDestroyed(WebManager.java:295) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.HttpSessionListener.sessionDestroyed(HttpSessionListener.java:33) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager.removeSession(AbstractSessionManager.java:665) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:938) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.HashSessionManager$Session.invalidate(HashSessionManager.java:500) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.SimpleSession.invalidateNow(SimpleSession.java:286) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.doDeactivate(UiEngineImpl.java:1513) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.deactivate(UiEngineImpl.java:1430) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.desktopDestroyed(UiEngineImpl.java:184) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.SimpleDesktopCache.desktopDestroyed(SimpleDesktopCache.java:105) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.SimpleDesktopCache.stop(SimpleDesktopCache.java:141) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.SessionDesktopCacheProvider.sessionDestroyed(SessionDesktopCacheProvider.java:59) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.WebManager.onSessionDestroyed(WebManager.java:304) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.HttpSessionListener.sessionDestroyed(HttpSessionListener.java:33) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager.removeSession(AbstractSessionManager.java:665) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:938) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.HashSessionManager$Session.invalidate(HashSessionManager.java:500) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.http.SimpleSession.invalidateNow(SimpleSession.java:286) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.doDeactivate(UiEngineImpl.java:1513) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1066) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:484) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:372) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:381) INFO | jvm 1 | 2008/09/04 12:34:26 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) INFO | jvm 1 | 2008/09/04 12:34:26 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.Server.handle(Server.java:324) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) INFO | jvm 1 | 2008/09/04 12:34:26 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More