phamtranquocviet schrieb:

>       public boolean isDuplicateSsn(String ssn) throws SQLException

You can't throw a SQLException from a method of a RemoteServiceServlet.
To be able to transport this exception to the client (where it is passed
as argument to the onFailure-method of the AsyncCallback, it's necessary
to extend it from SerializableException which SQLException clearly isn't.

I solved it that way, that I throw a RemoteServiceException where I add
the stacktrace of the causing exception as String, allowing to show the
error in a usual way (if you want to show that much information to an
user) without the need to create many many different exceptions.


Regards, Lothar

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