Saving objects in servlet session and java.io.NotSerializableException

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-05-17T08:46:03Z Indexed on 2010/05/17 8:50 UTC
Read the original article Hit count: 219

Filed under:
|
|

SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writi ng aborted; java.io.NotSerializableException:

That means this object cannot be persisted on hard disk.

Does it imply that it's not safe to keep in Session objects that do not implement "Serializable"?

I haven't heard that there are limitations on saving non-serializable objects in Session object.

It simply means that Tomcat will always keep them in memory, right?

© Stack Overflow or respective owner

Saving objects in servlet session and java.io.NotSerializableException

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-05-17T08:44:57Z Indexed on 2010/05/17 8:50 UTC
Read the original article Hit count: 219

Filed under:
|
|
|
 SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writi

ng aborted; java.io.NotSerializableException:

That means this object cannot be persisted on hard disk.

Does it imply that it's not safe to keep in Session objects that do not implement "Serializable"?

I haven't heard that there are limitations on saving non-serializable objects in Session object.

It simply means that Tomcat will always keep them in memory, right?

© Stack Overflow or respective owner

Related posts about java

Related posts about servlets