Reputation: 1335
I am getting the following error
org.springframework.orm.hibernate3.HibernateSystemException: could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize
All my classes implements serializable. Acutally I am fetching one list from DB and using it's value to fetch another result.
Upvotes: 2
Views: 5461
Reputation: 299218
Serialization is not only implementing Serializable
. There are many other things you have to be aware of. Without a stack trace or some code, we really can't find out what's going wrong. Here are some pointers:
Also, as always:
Read Effective Java by Joshua Bloch, it contains a whole chapter on Serialization.
Upvotes: 0
Reputation: 1335
Got Solution :
In one of my POJO there was field whose dataType was Serializabel(as it was nvarchar in DB) so change it to byte[] and problem was solved.
Upvotes: 3