I'm having problems passing via RPC a Collection with elements
that are objects of a user-defined class that implements
IsSerializable. The class is called "CategoriaVO" and the only data
fields it contains are of types Strings and int.
Here's my service definition:
public interface AniadirGWT extends RemoteService {
/**
* @gwt.typeArgs <ki.rutoteca.gwt.client.CategoriaVO>
*/
public Collection obtenerCategorias();
}
When RPC calls the async callback function it throws a exception:
[WARN] Exception thrown into JavaScript
java.lang.RuntimeException: Checked exception thrown into JavaScript
(web mode behavior may differ)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:396)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeVoid(ModuleSpaceIE6.java:283)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:127)
at
ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer.deserialize(transient
source for ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer:177)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:85)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:59)
at
ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletionImpl(transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:54)
at
ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletionAndCatch(transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:43)
at ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletion(transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:37)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:90)
Caused by: com.google.gwt.user.client.rpc.SerializationException:
$Proxy399/1697872327
at
ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer.raiseSerializationException(transient
source for ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer:174)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:90)
at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:121)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:245)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:154)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at
org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
at
org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493)
at
org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:365)
Is there something I don't know about making a class GWT serializable?
I've read the
serialization documentation on the GWT web site but I might be missing
something. Anyone have any ideas? Thanks very much for any help that
you can give me.
Hi,
I'm having problems passing via RPC a Collection with elements
that are objects of a user-defined class that implements
IsSerializable. The class is called "CategoriaVO" and the only data
fields it contains are of types Strings and int.
Here's my service definition:
public interface AniadirGWT extends RemoteService {
/**
* @gwt.typeArgs <ki.rutoteca.gwt.client.CategoriaVO >
*/
public Collection obtenerCategorias();
}
When RPC calls the async callback function it throws a exception:
[WARN] Exception thrown into JavaScript
java.lang.RuntimeException : Checked exception thrown into JavaScript
(web mode behavior may differ)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:396)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeVoid (ModuleSpaceIE6.java:283)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:127)
at
ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer.deserialize(transient
source for ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer:177)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:85)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject (AbstractSerializationStreamReader.java:59)
at
ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletionImpl(transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:54)
at
ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletionAndCatch (transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:43)
at ki.rutoteca.gwt.client.AniadirGWT_Proxy$1.onCompletion(transient
source for ki.rutoteca.gwt.client.AniadirGWT_Proxy:37)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:90)
Caused by: com.google.gwt.user.client.rpc.SerializationException:
$Proxy399/1697872327
at
ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer.raiseSerializationException (transient
source for ki.rutoteca.gwt.client.AniadirGWT_TypeSerializer:174)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:90)
at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke (IDispatchProxy.java:121)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:245)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:154)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at
org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
at
org.eclipse.swt.ole.win32.OleAutomation.invoke (OleAutomation.java:493)
at
org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:365)
Is there something I don't know about making a class GWT serializable?
I've read the
serialization documentation on the GWT web site but I might be missing
something. Anyone have any ideas? Thanks very much for any help that
you can give me.
Thanks for your answer but how can I fix the problem?
Silvia