Environment: GWT 2, Spring + Spring Security 3, gwtrpc-spring 1.01
I am trying to implement authentication for my GWT application using
Spring Security. But when I call the RPC.invokeAndEncodeResponse
method it throws an SerializationException. Looking at the stack trace
I see that
GWT does not serialize RuntimeExceptions. If it did, it would have to
generate javascript equivalent of several useless Exception classes.
If you want the exception to propagate to the client, you have to do the
following -
a) The Exception should be Serializable
b) It should be in the client