Re: gwt dispatch very strange error

28 views
Skip to first unread message

David Peterson

unread,
Apr 3, 2011, 6:39:36 PM4/3/11
to mariyan nenchev, Bitm...@gmail.com, gwt-di...@googlegroups.com, topc...@gmail.com, turbo...@gmail.com, robert....@gmail.com
It seems to be having trouble serializing the object you're sending
over the wire - or more specifically, the object that is being put
into the exception. ServiceException can contain other exceptions, and
it seems like the exception that is getting thrown can't be
serialized, probably due to a field that it contains.

David

On Fri, Apr 1, 2011 at 7:29 PM, mariyan nenchev
<nenchev...@gmail.com> wrote:
> Hi,
> I integrated gwt-dispatch 1.1.0 with spring, but when i try to "execute"
> gwt-dispatch Action it sends the request but the result fails and calls
> onFailure() with exception
> net.customware.gwt.dispatch.shared.ServiceException [cause:
> java.lang.NullPointerException]
> <br/> at
> net.customware.gwt.dispatch.shared.ServiceException_FieldSerializer.instantiate(ServiceException_FieldSerializer.java:15)
> <br/> at
> net.customware.gwt.dispatch.shared.ServiceException_FieldSerializer.create(ServiceException_FieldSerializer.java:24)
> <br/> at
> com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:115)
> <br/> at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:111)
> <br/> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119)
> <br/> at
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:216)
> <br/> at
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
> <br/> at
> com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
> <br/> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> <br/> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> <br/> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> <br/> at java.lang.reflect.Method.invoke(Method.java:597)
> <br/> at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> <br/> at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> <br/> at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
> <br/> at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
> <br/> at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
> <br/> at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
> <br/> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
> <br/> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:…
> Do you have any suggestions?
> Regards.

Reply all
Reply to author
Forward
0 new messages