Wednesday, December 18, 2024

RE: Getting 500 error from RPC call

> If there was a serialization error, it would be written out using your servlet container's own logging system

 

You are correct, it is a serialization error and it was in a different log.

 

Here is the error message:

 

Exception while dispatching incoming RPC call

com.google.gwt.user.client.rpc.SerializationException:

Type 'com._3dmathpuzzles.slitherlink.RectangularWithDiagonalsPuzzle' was not assignable to

'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.

For security purposes, this type will not be serialized.:

instance = com._3dmathpuzzles.slitherlink.RectangularWithDiagonalsPuzzle@703902c0

 

That is a bit cryptic and does not give details on which field was causing the problem.

 

I am pretty sure I am not going to be the only person who is trying to learn
GWT and runs into it.  Can we add a warning to the GWT compiler which alerts
the user that they have a final field which could cause a problem?

 

Thank you,

 Neil

 

--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!

No comments:

Post a Comment