I'm experiencing the following behaviour of gwt 1.5.3 when trying to
serialize exceptions via rpc.
I'v got an self implemented serializable exception type and a subclass
of it like follows:
public class SerializableRuntimeException extends RuntimeException
implements Serializable {
...
}
public class ExceptionSubClass extendsSerializableRuntimeException {
...
}
The service interface declares the SerializableRuntimeException as
thrown
public interface ISyncService extends RemoteService {
public String getSomething() throws
SerializableRuntimeException;
}
When throwing an SerializableRuntimeException inside the
implementation of getSomething() everything is working as supposed,
but when throwing ExceptionSubClass I just get an
SerializationException on the server which says
com.google.gwt.user.client.rpc.SerializationException: Type
'ExceptionSubClass' was not included
in the set of types which can be serialized by this
SerializationPolicy or its Class object could not
be loaded. For security purposes, this type will not be serialized.
Is it the intended behaviour that gwt only serializes the exact
exception class provided by "throws" and none of its subclasses? Seems
to me like this complicates things.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---