2

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.

1
  • Can you post the full stacktrace? That will help us to determine the issue more easily. Commented Oct 28, 2010 at 5:29

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

could you explain more detail?
0

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.

2 Comments

All of the links you provided are broken. Could you please provide another one where I can go and read what the solution is?
@WowBow One link was broken, but it just took one quick Google to get the correct link. The others work, and my answer was posted one and a half years ago.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.