Here's the important part of your bug:

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded

Your code is trying to send a
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException via RPC, which
it can NOT do.  My guess is that your servlet code is throwing that
exception, but that is just a guess.  But step 1 is to check all your
RPC routines, and make sure none of them have a throws clause.

On Dec 6, 9:30 am, "du.hahn" <du.h...@gmail.com> wrote:
> Hi, I get this error when i connect to a mysql database with eclipse
> debug.
>
> Starting Jetty on port 8888
>    [WARN] Exception while dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException' 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.: instance =
> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
> Communications link failure
>
> The last packet sent successfully to the server was 0 milliseconds
> ago. The driver has not received any packets from the server.
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> 614)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> 126)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
> 534)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
>         at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 383)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 581)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 207)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> 243)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> 62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 362)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 729)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> 49)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
>         at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:843)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 395)
>         at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:488)
> [ERROR] 500 - POST /dbmind/greet (127.0.0.1) 57 bytes
>    Request headers
>       Host: localhost:8888
>       Connection: keep-alive
>       Referer:http://localhost:8888/
>       Accept: */*
>       User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/
> 534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
>       Accept-Encoding: gzip,deflate,sdch
>       Accept-Language: en-US,en;q=0.8
>       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
>       Content-Length: 184
>       Origin:http://localhost:8888
>       X-GWT-Module-Base:http://localhost:8888/dbmind/
>       Content-Type: text/x-gwt-rpc; charset=UTF-8
>       X-GWT-Permutation: 35D485F388E45FAF93FBD6C114AF0A90
>    Response headers
>       Content-Type: text/plain
>
> Anybody can help me?

-- 
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-tool...@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