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 25158] New: - Tomcat can't load sessions whose attributes refer the session instance
Date Wed, 03 Dec 2003 10:56:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25158>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25158

Tomcat can't load sessions whose attributes refer the session instance

           Summary: Tomcat can't load sessions whose attributes refer the
                    session instance
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bob.news@gmx.net


When putting an instance into the session that has a non transient reference to 
the current session, storage on tomcat shutdown succeeds but on loading the 
session during tomcat startup fails with a java.io.StreamCorruptedException.  
(see attachment, which contains a sample app as well as a log file with 
debug="99")

As an additional Note: when one tries to serialize the session instance into a 
ByteArrayOutputStream just before storage, there is no serialization error.  
This problem seems to be special to *loading*.

Steps to reproduce:
0. optionally build the webapp
1. deploy the web application
2. start tomcat
3. access http://<server>/<path>/index.jsp
4. shutdown tomcat
5. start tomcat
6. check the log

When the instance of class test.SessionBindingListener does *not* keep the 
reference to the session instance, the problem goes away.

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


Mime
View raw message