It means that your RPC service threw an error that GWT couldn't translate in
javascript code. In all probability, it is a hibernate exception which GWT
couldn't understand.

Any exception that you want the client to handle must be declared in the
throws clause of your RPC Service interface. Also, the exception itself
should be serializable, otherwise GWT will not be able to send it across the
wire to the browser.

In your case, you could just wrap your RPC service method in a try/catch
block, catch the hibernate exception, log it, and throw a custom exception
which the client can understand.

--Sri


2009/9/16 Danny <[email protected]>

>
> Hi,
>
> trying to get my GWT Application running I get the next error. When
> the line "List<Allianz> allianzen = session.createQuery("SELECT id,
> kuerzel, name from gctool.allianzen").list();" is executed I geht the
> following error:
>
> Service method 'public abstract java.util.List
> com.gc.tool.client.GC_ToolService.getAllianzen()' threw an unexpected
> exception: java.lang.reflect.UndeclaredThrowableException
> Stack:
> com.google.gwt.user.server.rpc.RPCCopy_GWT16.encodeResponseForFailure
> (RPCCopy_GWT16.java:348)
> Stack: com.google.gwt.user.server.rpc.RPCCopy.encodeResponseForFailure
> (RPCCopy.java:216)
> Stack: net.sf.gilead.gwt.PersistentRemoteService.processCall
> (PersistentRemoteService.java:164)
> Stack: com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
> Stack: javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> Stack: javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> Stack: org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:487)
> Stack: org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:362)
> Stack: org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
> Stack: org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
> Stack: org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:729)
> Stack: org.mortbay.jetty.webapp.WebAppContext.handle
> (WebAppContext.java:405)
> Stack: org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:152)
> Stack: org.mortbay.jetty.handler.RequestLogHandler.handle
> (RequestLogHandler.java:49)
> Stack: org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:152)
> Stack: org.mortbay.jetty.Server.handle(Server.java:320)
> Stack: org.mortbay.jetty.HttpConnection.handleRequest
> (HttpConnection.java:505)
> Stack: org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:843)
> Stack: org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> Stack: org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
> 205)
> Stack: org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
> 380)
> Stack: org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:395)
> Stack: org.mortbay.thread.QueuedThreadPool$PoolThread.run
> (QueuedThreadPool.java:488)
>
>
> Is this error related to GWT or hibernate? Can anybody tell me where
> start searching?
> Thanks in adance
> Daniel
> >
>

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