tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30489] - removeAttribute: Session already invalidated
Date Mon, 16 Jan 2006 13:59:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30489>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30489


thomas2.maesing@bgs-ag.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
            Version|5.0.25                      |5.0.28




------- Additional Comments From thomas2.maesing@bgs-ag.de  2006-01-16 14:59 -------
The workaround doesn't fix the problem of Standard Session.

The removeAttribute method calls:

isValid()

which then expires the session if necessary:

        if (maxInactiveInterval >= 0) { 
            long timeNow = System.currentTimeMillis();
            int timeIdle = (int) ((timeNow - thisAccessedTime) / 1000L);
            if (timeIdle >= maxInactiveInterval) {
                expire(true);
            }
        }

as a result isvalid() returns false and an IllegalStateException is thrown

which results in the Context reloading again, but the StandardManager is already
in the state stopped

which results in an IllegalStateException and the Context starts reloading again
and so on


Therefore you have to stop the complete server.

I don't know the right solution, one may be a different state expired for the
StandardSession

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message