aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Could not deserialize session data" Watch "Could not deserialize session data" New topic
Author

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.

java.io.NotSerializableException: com.StudentBean

And also when i refreshed my page at this point i am getting ClassCastException
java.lang.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.

java.io.NotSerializableException: com.StudentBean


Hi Parameswaran,

exception is because StudentBean is not implementing Serializable interface.

Whatever objects you store in session must be serializable.

Naseem


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not deserialize session data
 
Similar Threads
Problem with session
Bean population
Clarification needed regarding jsp:getProperty
As i am drawing sequence diagram for prepare itinerary...
Issue with DataTable - how to control null data set?