SerializationPolicy error when performing RPC from within GWT application

后端 未结 10 2096
醉梦人生
醉梦人生 2020-12-14 01:59

I\'m getting the following exception:

com.google.gwt.user.client.rpc.SerializationException: Type \'java.lang.Long\' was not included in the set of ty

10条回答
  •  萌比男神i
    2020-12-14 03:02

    FWIW, I was having this problem but my 'Object' type was hidden behind generified classes. The error message itself was wrong.

    So if one of your rpc methods involves a class:

    class Xxx implements IsSerializable {...
    

    It needs to change to:

    class Xxx implements IsSerializable {...
    

提交回复
热议问题