Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes Could not deserialize session data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Could not deserialize session data" Watch "Could not deserialize session data" New topic

Could not deserialize session data

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
Hi all
in my struts application, I allow the user to search my database based on some criteira. The search results are stored using java bean. say student bean.
Once i collected all the student bean i am publishing these student information in JSP page. in the log file i am getting the error saying

Could not deserialize session data. com.StudentBean

And also when i refreshed my page at this point i am getting ClassCastException

Any idea?
[ July 23, 2006: Message edited by: Parameswaran Thangavel ]
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Originally posted by Parameswaran:
Could not deserialize session data. com.StudentBean

Hi Parameswaran,

exception is because StudentBean is not implementing Serializable interface.

Whatever objects you store in session must be serializable.


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Don't get me started about those stupid light bulbs.
subject: Could not deserialize session data
It's not a secret anymore!