I can't tell from your code whether InvalidUserRegistrationException is
serializable. Are you sure that it is? (eg does it have a no-arg
constructor?)

Also, what does the server log say is wrong?

romant wrote:
> Hi,
> the situation looks like this:
>
> I have a serializable exception type and its subclass which has
> another subclass:
>
>         public class ServiceException extends Exception implements
> Serializable {
>                 ...
>         }
>
>         public class UserRegistrationException extends
> ServiceException {
>                 ...
>         }
>
>         public class InvalidUserRegistrationException extends
> UserRegistrationException {
>                 ...
>         }
>
> The service interface declares the ServiceException
>
>         public interface ISyncService extends RemoteService {
>                 public String getSomething() throws ServiceException;
>         }
>
> The server side code looks like this:
>
> public class ISyncServiceImpl extends RemoteServiceServlet implements
> ISyncService {
>     public String getSomething() throws ServiceException {
>
>         //throw new ServiceException("ServiceException");  works
>         //throw new UserRegistrationException
> ("UserRegistrationException");  works
>         throw new InvalidUserRegistrationException
> ("InvalidUserRegistrationException");
>     }
> }
>
> When throwing a ServiceException inside the implementation of
> getSomething() everything works as supposed,
> the client side receives the ServiceException, when throwing a
> UserRegistrationException it works fine as well, but when throwing
> InvalidUserRegistrationException it is not propagated to the client
> side, instead of that server returns http status 500 and the client
> receives com.google.gwt.user.client.rpc.StatusCodeException which says
> that
>
> "The call failed on the server; see server log for details".
>
> The problem must be apparently caused by the inheritance, could
> anybody explain what's going on here?
>
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to