0

NotSerializableException: RepeatableInputStream$ResetableInputStream

asked 2015-08-20 12:26:10 +0800

FlorianSchaetz gravatar image FlorianSchaetz flag of Germany
31 6

Hello,

we are using ZK 7.0.3 for this project and (sometimes, not always) get this error when restarting tomcat, which leads to the session being lost, which is quite annoying.

It seems to be that something (zk?) puts a ResetableInputStream into the session attributes, but I have no idea when and where? Does anyone have a good idea how this could happen and how to prevent it?

10:43:26.777 [localhost-startStop-1] ERROR org.apache.catalina.session.StandardManager.doLoad (305) - IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.zkoss.io.RepeatableInputStream$ResetableInputStream java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.zkoss.io.RepeatableInputStream$ResetableInputStream at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1354) ~[?:1.7.0_45]

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-20 15:01:54 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

To explain what is happening :

You are trying to write something away (the WriteAbortedException) but some of your objects are not fully serializable.

What does this mean :

Some of the classes (or field of that class) does not implement the serializable interface.

Greetz Chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-08-20 12:26:10 +0800

Seen: 16 times

Last updated: Aug 20 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More