tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirek.Su...@intax.cz
Subject Problems with invalidate
Date Fri, 22 Sep 2000 12:53:39 GMT
I have installed Tomcat 3.1 and then Tomcat 3.2 beta 3 on my PC (with
Windows 95).
                                                                            
 Can you tell me, why session.invalidate() and session.putValue() methods   
 work only under Tomcat 3.1 and not under Tomcat 3.2 beta 3?                
                                                                            
                                                                            
 Under Tomcat 3.2 beta 3 they                                               
 cause "java.lang.IllegalStateException: getAttribute: Session already      
 invalidated"!                                                              
                                                                            
                                                                            
 Or more exactly, if I use session.invalidate, then session.putValue cause  
 this exception.                                                            
                                                                            
                                                                            
 I use this code at my JSP page (mesto.jsp):                                
 --------------------------------------------------------------             
                                                                            
                                                                            
 <%                                                                         
 ...........                                                                
 session.invalidate();                                                      
 session = request.getSession (true);                                       
 beanX=new Vector();                                                        
 session.putValue("beanX", beanX);                                          
 %>                                                                         
                                                                            
                                                                            
 Here is the exception:                                                     
 ---------------------------------                                          
                                                                            
                                                                            
 java.lang.IllegalStateException: setAttribute: Session already invalidated 
 at                                                                         
 org.apache.tomcat.session.StandardSession.setAttribute                     
 (StandardSession.java:713) at                                              
 org.apache.tomcat.session.StandardSession.putValue                         
 (StandardSession.java:629) at                                              
 org.apache.tomcat.facade.HttpSessionFacade.putValue                        
 (HttpSessionFacade.java:147) at                                            
 _0002fmesto_0002ejspmesto_jsp_3._jspService                                
 (_0002fmesto_0002ejspmesto_jsp_3.java, Compiled Code) at                   
 org.apache.jasper.runtime.HttpJspBase.service                              
 (HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service           
 (HttpServlet.java:853) at                                                  
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service             
 (JspServlet.java:177) at                                                   
 org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:309)  
 at                                                                         
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled     
 Code) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) at  
 org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:387)  
 at                                                                         
 org.apache.tomcat.core.Handler.service(Handler.java:263) at                
 org.apache.tomcat.core.ServletWrapper.service                              
 (ServletWrapper.java:371) at                                               
 org.apache.tomcat.core.ContextManager.internalService                      
 (ContextManager.java:749) at                                               
 org.apache.tomcat.core.ContextManager.service (ContextManager.java:695) at 
                                                                            
 org.apache.tomcat.service.http.HttpConnectionHandler.processConne          
 ction(HttpConnectionHandler.java:207) at                                   
 org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java,     
 Compiled Code) at                                                          
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java,    
 Compiled Code) at java.lang.Thread.run (Thread.java, Compiled Code)        
                                                                            
                                                                            
 ------------------------------------------------------                     
 Thank you very much for any help!                                          
                                                                            
                                                                            
 Mirek Subrt                                                                
                                                                            





Mime
View raw message