File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes i am losing session info - pls help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "i am losing session info - pls help" Watch "i am losing session info - pls help" New topic
Author

i am losing session info - pls help

Subbu Aswathanarayan
Ranch Hand

Joined: Jun 22, 2001
Posts: 73
hi all,
this is my system info
NT 4.0
IIS 4.0
JRun 3.1
I have written a few servlets and jsp pages for a project i am working on.
i am using session tracking for user authentication.everything is working fine but sometimes i lose the session information.when i checked the JRun log files i found the following error
08/07 12:44:42 error (session) Session data is not serializable (ID=103726997202377538) - session is lost
08/07 12:44:42 error (session) Session data is not serializable (ID=278050997202666173) - session is lost
does anyone know whats happening here?
any help would be greatly appreciated.
Subbu

[This message has been edited by Subbu Aswathanarayan (edited August 07, 2001).]


Subbu
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
JRun is trying to write the session out to disk to save memory. You have attached something to the session that is not serializable so the session is lost.
If that un-serializable object is under your control, you could have the class implement Serializable and see what happens.
Bill

------------------
author of:


Java Resources at www.wbrogden.com
Jack Wiesenthaler
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
Check your configuration. Your application should not be marked as distributable - remove the <distributable/> tag in the web.xml deployment descriptor.
In a clustered environment objects must be serializable to be stored in the session because the sessions itself are serialized and transferred by the cluster server to one of a number of clients.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i am losing session info - pls help
 
Similar Threads
tomcat 404 error
Tomcat engine problem
what can i do with my jrun3.0?
Jrun problem
Logging problem log4j:ERROR