struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhishek jain <abhishek.netj...@gmail.com>
Subject Session error while loading an object
Date Tue, 13 Jul 2010 08:33:36 GMT
Hi friends,
I am using tomcat 5.5 , struts 1.x and i encounter the following error:
I actually store the object in session and retrieve that(for a shopping cart
application), pl. advice what i can do to remove this error:

Exception loading sessions from persistent
storagejava.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: com.cart.Customer
       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)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
       at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1416)
       at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:940)
       at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
       at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
       at
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
       at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4202)
       at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)
       at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
       at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
       at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
       at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
       at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
       at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
       at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.NotSerializableException: com.cart.Customer
       at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
       at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
       at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
       at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
       at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
       at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1492)
       at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:957)
       at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
       at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
       at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
       at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4362)
       at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3050)
       ... 7 more



-- 
Thanks and kind Regards,
Abhishek jain

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