1

I get SerializationException when passing ArrayList<MyObject> as parameter to RPC servlet method. Class MyObject consist only 2 fields with types String and Serializable. Into Serializable field I pass values as Boolean(checkBox.getValue), String(textBox.getValue) and Date(dateBox.getValue). So inside Serializable field I have always types which are 100% can be serialized. Why this exception can be rised?

Thanks.

1
  • What exception? Post the complete message and stack trace. It almost certainly contains the answer. Commented Jun 3, 2012 at 22:39

1 Answer 1

1

I think you can't use Serializable as a type for GWT RPC, likewise I couldn't use Object instances. GWT can't handle it properly. Also your object which you want to serialize with RPC should have default constructor, even if its empty. Paste your code and exception message in the question.

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

1 Comment

should have default constructor - I forget doing that. Big thanks!

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.