Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Exception loading sessions from persistent storage

Ben Souther

2003-12-16

Replies:

Yes you are...
Tomcat supplies the needed j2ee resources.

When you declare your vPar class, just make sure that you specify that it
implements Serializable:

public class vPar implements java.io.Serializable{


If you have any nested classes do the same for them.






On Wednesday 17 December 2003 12:22 pm, L.Karam wrote:
>  I'm not using j2ee plataform. There is any problem ?
>   ----- Original Message -----
>   From: Ben Souther
>   To: Tomcat Users List
>   Sent: Tuesday, December 16, 2003 3:10 PM
>   Subject: Re: Exception loading sessions from persistent storage
>
>
>   If you store an object in session, make sure it implements
>   java.io.Serializable
>
>   On Wednesday 17 December 2003 12:03 pm, L.Karam wrote:
>   >  how i do this ?
>   >
>   >  I'm using : javax.servlet.http.HttpSession;
>   >
>   >  session.setAttribute("parametros", vPar);
>   >   ----- Original Message -----
>   >   From: Shapira, Yoav
>   >   To: Tomcat Users List
>   >   Sent: Tuesday, December 16, 2003 2:25 PM
>   >   Subject: RE: Exception loading sessions from persistent storage
>   >
>   >
>   >
>   >   Howdy,
>   >   Don't use non-Serializable session attributes.
>   >
>   >   Yoav Shapira
>   >   Millennium ChemInformatics
>   >
>   >   >-----Original Message-----
>   >   >From: L.Karam [mailto:leandro@(protected)]
>   >   >Sent: Wednesday, December 17, 2003 11:19 AM
>   >   >To: Tomcat Users List
>   >   >Subject: Exception loading sessions from persistent storage
>   >   >
>   >   >Can anyone tell me what this error means, and what I need to
>   >   > fix. ???? (Tomcat 4.1.24)
>   >   >
>   >   >
>   >   >Exception loading sessions from persistent storage
>   >   >java.io.WriteAbortedException: writing aborted;
>   >   >java.io.NotSerializableException: servlet.beanParametro
>   >   >
>   >   >
>   >   >Thanks!
>   >   >
>   >   >Leandro Karam Quintas
>   >   >Desenvolvedor WEB
>   >   >EBS Sistemas
>   >   >www.ebs.com.br
>   >   >
>   >   >
>   >   >----------------------------------------------------------------
>   >   >----- To unsubscribe, e-mail:
>   >   > tomcat-user-unsubscribe@(protected)
>   >   > commands, e-mail: tomcat-user-help@(protected)
>   >
>   >   This e-mail, including any attachments, is a confidential
>   > business communication, and may contain information that is
>   > confidential, proprietary and/or privileged. This e-mail is intended
>   > only for the individual(s) to whom it is addressed, and may not be
>   > saved, copied, printed, disclosed or used by anyone else. If you are
>   > not the(an) intended recipient, please immediately delete this e-mail
>   > from your computer system and notify the sender. Thank you.
>   >
>   >
>   >  
>   > ---------------------------------------------------------------------
>   > To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>   > For additional commands, e-mail: tomcat-user-help@(protected)
>
>   --
>   Ben Souther
>   F.W. Davison & Company, Inc.
>
>
>
>   ---------------------------------------------------------------------
>   To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>   For additional commands, e-mail: tomcat-user-help@(protected)

--
Ben Souther
F.W. Davison & Company, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.