My guess is you are getting an authentication error and the service is
throwing that to the rpc response.  Make sure you wrap your service
calls in exceptions that GWT can handle (runtime).

Might need to paste your code that calls getConnection() if this isn't
the issue to get to more feedback.


On Dec 13, 4:42 am, Amy <huntm...@gmail.com> wrote:
> I  am designing a simple authentication application using GWT. There
> is no processing done on the client side. On the server side there is
> a authenticate() function which should connect to a database and
> return a string "success" or "failure "to the client. I am executing
> the code in the development mode. I am using a sybase database. I have
> added the required jar files in war/WEB-INF/lib as well as in the
> build path. But i am facing issues in connecting to a database.
> Database driver gets loaded successfully but getConnection() method
> shows a lot of RPC exceptions when i try running the webapp. Can
> anyone please help.. ??
>
> It shows this mesage in console tab in ecilipse..Dec 13, 2011 1:51:06
> PM com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
> incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException:
> Service method 'public abstract java.lang.String
> com.ericsson.authentication.client.AuthenticationService.authenticate(java. 
> lang.‌​
> String,java.lang.String)' threw an unexpected exception:
> java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
> Please see the Google App Engine developer's guide for more details..

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to