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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]