struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhishek jain <abhishek.netj...@gmail.com>
Subject Re: Session error while loading an object
Date Wed, 14 Jul 2010 09:15:21 GMT
2010/7/14 Paweł Wielgus <poulwiel@gmail.com>

> Hi all,
> You get this error every time when tomcat tries to save someone's
> session and object of class com.cart.Customer is in it.
> Like Robert said, add Serializable to com.cart.Customer and the
> problem will go away.
>
> Best greetings,
> Paweł Wielgus.
>

Hi,
I have added the Serializable to com.cart.Customer, but now i am getting the
following error, which i think is due to the reason that i am using
reference of Datasource and Message Resource in the class which i believe is
not serializable:

IOException while loading persisted sessions: java.io.WriteAbortedException:
writing aborted; java.io.NotSerializableException:
org.apache.commons.dbcp.BasicDataSourcejava.io.WriteAbortedException:
writing aborted; java.io.NotSerializableException:
org.apache.commons.dbcp.BasicDataSource
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
       at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
       at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
       at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)


.....................

Pl. advice

thanks
abhishek

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message