Help! com.google.gwt.user.client.rpc.StatusCodeException: 500 The call failed on the server; see server log for details

12,948 views
Skip to first unread message

Qian ZHAO

unread,
Dec 19, 2011, 6:00:00 AM12/19/11
to Google Web Toolkit
Hello, Everyone, I'm a new, just start learning GWT,
and, here, I met one error when I want to integrate GWT and
Hiobernate, and here it is the error messages,


11:40:32.429 [ERROR] [testgwt] Can't access database

com.google.gwt.user.client.rpc.StatusCodeException: 500 The call
failed on the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
209)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)


is there any one that has ever met this error? what should I do to
solve it? thank in advance !

Ed

unread,
Dec 19, 2011, 5:12:06 PM12/19/11
to google-we...@googlegroups.com
> is there any one that has ever met this error?
Yep, we all see them during development.

> what should I do to solve it?
Do what the exception say's: look in the server log....

Tip: make sure your backend runs well without using gwt. Test your backend through unit tests that will catch the above errors.
If you throw checked exceptions to the front end you will get more exception details in the client btw.
See GWT doc for more info.

- Ed

Kanagaraj M

unread,
Dec 19, 2011, 10:52:42 PM12/19/11
to google-we...@googlegroups.com
The possible reason would be 
GWT is not able to serialize your objects.
Can you tell when you are getting this exception exactly? While making a call or on return of the call.
Check whether your objects are serializable or not.

HARISH SAHARAN

unread,
Dec 21, 2011, 11:33:09 PM12/21/11
to Google Web Toolkit
When we works on development mode this error comes generally because
of our outOfMemory issue if you see on jetty server it will show you
the "outOfMemory" issue.
We all know that our development mode depends on our system's memory .
So either increase the memory or check it on web mode

raju...@gmail.com

unread,
Dec 22, 2011, 2:25:41 AM12/22/11
to Google Web Toolkit
It looks like you have attached partial logs. This problem mostly
comes due to serialization issues.

On Dec 19, 4:00 pm, Qian ZHAO <z.qi...@gmail.com> wrote:

David

unread,
Dec 22, 2011, 10:37:57 AM12/22/11
to Google Web Toolkit
start by looking for any uncaught exception on the server

On Dec 19, 6:00 am, Qian ZHAO <z.qi...@gmail.com> wrote:
> Hello, Everyone, I'm a new, just start learning GWT,
> and, here, I met one error when I want to integrate GWT and
> Hiobernate, and here it is the error messages,
>
> 11:40:32.429 [ERROR] [testgwt] Can't access database
>
> com.google.gwt.user.client.rpc.StatusCodeException: 500 The call
> failed on the server; see server log for details
>     at
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv ed(RequestCallbackAdapter.java:
> 209)
>     at
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> 287)
>     at com.google.gwt.http.client.RequestBuilder
> $1.onReadyStateChange(RequestBuilder.java:395)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 172)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo rReturn(BrowserChannelServer.java:
> 337)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java:
> 218)
>     at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 136)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>     at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava:
> 91)
>     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 172)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java:
> 292)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java:

Sevak Asadorian

unread,
Jan 12, 2013, 7:47:51 PM1/12/13
to google-we...@googlegroups.com
server log is empty. any ideas as to why? how to fix it so it can log?

mdwarne

unread,
Jan 15, 2013, 2:52:06 PM1/15/13
to google-we...@googlegroups.com
Are you are able to run the debugger on your server code?
Try adding a break point, or add your own logging, or System.out.println() messages to your server code.
If it never reaches there, it probably is,  as others suggest,  a serialization issue.

Mike.

Marko Mišković

unread,
Jan 16, 2013, 4:37:53 AM1/16/13
to google-we...@googlegroups.com
Is there no arg constructor in your result class? All fields in that class have to be serializable. Try removing all params just to check is that a problem.

danie...@gmail.com

unread,
Jan 16, 2013, 11:14:34 AM1/16/13
to google-we...@googlegroups.com
Is there any special characters on your request, I had some problem when an user filled a textarea with a copy paste from a text editor that raplaced some chars like - or ç by another bizarre character...

Sevak Asadorian

unread,
Jan 16, 2013, 11:27:37 AM1/16/13
to google-we...@googlegroups.com

well here is the thing. back when I had lots of errors, the log was filled with entries. its been a while since i had a app "loading" error. where the app doesn't even load. so for the past month or so im just having bugs here and there (nothing major)

does the logger catch everything? another way to ask this would be, separately log each time you load the app in xxxx-appspot. com?

also, when i created the project, i cleaned up some auto generated code that didn't care for. do i need to keep some of that auto generated stuff for the logger? or the logger comes free no matter what?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jWLqzIUscFkJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reply all
Reply to author
Forward
0 new messages