Hi Lan,
I encounter this problem in my services, for more info see:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/64560785342d2dfd?hl=en
Test this:
If id type (K generic parameter) be a primitive-wrapper type (like Long or
Integer) you will not get exception, but if K is
http://code.google.com/p/google-web-toolkit/issues/detail?id=2374
On 30/08/11 08:10, Lan Andrew wrote:
Thank you very much,Alex.
Yes,maybe I shouldn't send List over rpc and use generics in gwt rpc
like this way.
But I also have some problems about the exception above.
The generic parameter K
Thank you very much,Alex.
Yes,maybe I shouldn't send List over rpc and use generics in gwt rpc
like this way.
But I also have some problems about the exception above.
The generic parameter K would be still erased in the generated Proxy
implementing that interface,even though I bind the parameter t
Thank you very much,Jeff.
Yes,as you say, I shouldn't send List over rpc.
Another problem, what do you think about the exception above?
The generic parameter K would be still erased in the generated Proxy
implementing that interface,even though I bind the parameter type,such
as String, in the subi
Are you sure you need a generic RemoteService? Like Jeff stated, RPC
proxyCreator needs to ensure all subtypes of the types specified in your
RemoteService need to be serialized (that way, server & client can
communicate without problems). This will bloat the size of generated code.
Moreover, h
Don't send List over rpc. The serializer has to take every impl of List and
create a serialization policy for it. Try it with ArrayList and see what you
get.
Also, K has to be defined as something, preferably something as strongly
typed as possible. And all instances of T and K must also be se
I make a test about gwt rpc these days, and meet some confusing
problems.
At first, I created a project named testGwtRpc by the gwt plug-in.
Certainly,this is a
helloworld project,and it works fine.
Second,I made some changes for the project,especially adding the
generics on the rpc service
interfa