I got to that point that I need to improve my RPC transfer speed - due
to big data - and I tried the com.google.gwt.rpc.RPC.
It's much, much faster -- but it's buggy. In dev.mode I got from 45
sec (classic approach) to 5sec with deRPC approach). But when I tried
to run it in the web.mode I get the following error:
Caused by: java.lang.ClassCastException: java.lang.Double cannot be
cast to java.lang.Boolean
at com.google.gwt.rpc.server.CommandSerializationUtil$TypeAccessor
$1.set(CommandSerializationUtil.java:106)
at com.google.gwt.rpc.server.CommandSerializationUtil
$TypeAccessor.set(CommandSerializationUtil.java:413)
at com.google.gwt.rpc.server.CommandServerSerializationStreamReader
$Visitor.endVisit(CommandServerSerializationStreamReader.java:121)
at com.google.gwt.rpc.client.ast.SetCommand.traverse(SetCommand.java:
64)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
312)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
35)
at
com.google.gwt.rpc.client.ast.InstantiateCommand.traverse(InstantiateCommand.java:
55)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at
com.google.gwt.rpc.server.CommandServerSerializationStreamReader.readObject(CommandServerSerializationStreamReader.java:
319)
at
com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.deserialize(Map_CustomFieldSerializerBase.java:
37)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.deserialize(HashMap_CustomFieldSerializer.java:
31)
... 46 more
It's shame that this fast RPC serialization method isn't completed,
and it's in still experimental status. So, can you tell when can we
expect a stable version of this code, please ???
Cheers!
Sorinel Cristescu
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment