0 Replies Latest reply on Mar 6, 2006 3:19 AM by roman.angelov

    Jboss 3.0.7 HttpSession invalidate problem...

    roman.angelov

      Hi all,
      I hope to help me for one straight problem...
      I have Struts based wep application deployed on JBoss 3.0.7. Almost of the application work over ssl (https protocol). I have login and logout action, in the login action I put some information in the HttpSession object. The JBoss container applies jsessionid=(uniq session id) to the URLs of the application part. In the logout action I want to the invalidate all HttpSession object and for this purpose I execute this source :
      request.getSession().invalidate();
      I try to execute this piece of code in the different part of the application - on the my LogoutAction or int the end part in the logout.jsp the result is same...This exepction is throwed int the abouve row of source:
      10:17:42,400 WARN [jbossweb] WARNING: Exception for /DTI_ONLINE/Logout.do;jsessionid=2xssaxutr1336
      java.lang.IllegalStateException
      at org.mortbay.jetty.servlet.AbstractSessionManager$Session.getAttribute(AbstractSessionManager.java:612)
      at org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43)
      at org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72)
      at org.mortbay.jetty.servlet.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:594)
      at org.apache.jsp.logoutTest$jsp._jspService(logoutTest$jsp.java:71)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
      at bg.latona.bca.utils.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:42)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      I thing is possible JBoss to wrap the standart HttpObject and to associate his object with jsessionid and when I try to execute request.getSession().invalidate(); or setTimeOut(...) to be a problem for Jetty session interceptors...or something related with ssl connection...I don't know. Somebody to know more for this problem?Thank you...