tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #182 has been filed.
Date Fri, 29 Sep 2000 12:23:52 GMT
Bug report #182 has just been filed.

You can view the report at the following URL:


REPORT #182 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
   Release: Tomcat 3.2 beta 3
   JVM Release: JDK 1.2.2
   Operating System: Windows 95
   OS Release: 4.00.950 B
   Platform: Intel Pentium Pro(r)

invalidate method and putValue method do not cooperate

<H1>Remarks: this is correction of ID=181</H1>
There are problems with cooperate of session.invalidate() and session.putValue() methods with
Tomcat 3.2 beta 3.
With Tomcat 3.1 there are no problems.
With Tomcat 3.2 beta 3 they cause
"java.lang.IllegalStateException: getAttribute: Session already invalidated"!
Or more exactly, if I use session.invalidate (see "The Code"), then session.putValue cause
this exception.
If I do not use session.invalidate, session.putValue works normaly. But I want to invalidate
this session!
The code:<BR>
I use this code at my JSP page (mesto.jsp):
<P> session.invalidate();
<BR> session = request.getSession (true);
<BR> beanX=new Vector();
<BR> session.putValue("beanX", beanX);
 Here is the exception:<BR>
java.lang.IllegalStateException: setAttribute: Session already invalidated
at org.apache.tomcat.session.StandardSession.setAttribute
at org.apache.tomcat.session.StandardSession.putValue
at org.apache.tomcat.facade.HttpSessionFacade.putValue
at _0002fmesto_0002ejspmesto_jsp_3._jspService
(, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service (
at javax.servlet.http.HttpServlet.service (
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
at org.apache.jasper.servlet.JspServlet.serviceJspFile
at org.apache.jasper.servlet.JspServlet.service(, Compiled
at javax.servlet.http.HttpServlet.service (
at org.apache.tomcat.core.ServletWrapper.doService
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service (
at org.apache.tomcat.core.ContextManager.internalService
at org.apache.tomcat.core.ContextManager.service (
at org.apache.tomcat.service.TcpWorkerThread.runIt (,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ (,
Compiled Code)
at (, Compiled Code)

View raw message