RequestFactory Problem: HTTP ERROR 500 /gwtRequest

364 views
Skip to first unread message

Alexander Orlov

unread,
May 17, 2011, 4:52:40 AM5/17/11
to Google Web Toolkit
I know, a pretty obscure RequestFactory related error message....

Does anybody know a *small* RequestFactory example which I could use
as a template? The samples/mobilewebapp RequestFactory example I've
found in the trunk cannot be compiled and the explanation provided on
the docs site is not complete.

#######################
ERROR: Uncaught exception escaped.
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
588)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
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(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
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:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Server Error 500 <html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>INTERNAL_SERVER_ERROR</pre>
<p>RequestURI=/gwtRequest</p><p><i><small><a href="http://
jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>
<br/>

at
com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:
36)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:
113)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
568)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
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(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
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:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)

Alexander Orlov

unread,
May 17, 2011, 4:52:57 AM5/17/11
to Google Web Toolkit

Alexander Orlov

unread,
May 17, 2011, 4:53:30 AM5/17/11
to Google Web Toolkit

Alexander Orlov

unread,
May 17, 2011, 5:11:35 AM5/17/11
to Google Web Toolkit

Thomas Broyer

unread,
May 17, 2011, 6:18:33 AM5/17/11
to google-we...@googlegroups.com


On Tuesday, May 17, 2011 10:52:40 AM UTC+2, Alexander Orlov wrote:
I know, a pretty obscure RequestFactory related error message....

Does anybody know a *small* RequestFactory example which I could use
as a template? The samples/mobilewebapp RequestFactory example I've
found in the trunk cannot be compiled and the explanation provided on
the docs site is not complete.

Have a look at the DynaTableRf sample.


#######################
ERROR: Uncaught exception escaped.
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses

Doesn't Jetty outputs the server-side exception that led to this client-side error?
A 500 error in RF generally means a bad configuration (including missing ProxyFor/Service annotations, bad types used in proxies and request contexts, or client side methods with no equivalent on the server side classes, or similar missing things).
In case you can't find it, set a breakpoint in the RequestFactoryServlet to inspect the exception.

Marcin Misiewicz

unread,
May 17, 2011, 6:31:07 AM5/17/11
to google-we...@googlegroups.com
Did you switched to the new RequestFactoryServlet in the web,xml file. When I switched to the 2.3 version I got similar error. I've changed web.xml and now it works.


Reply all
Reply to author
Forward
0 new messages