SerializationPolicy error when performing RPC from within GWT application

后端 未结 10 2094
醉梦人生
醉梦人生 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条回答
  •  轮回少年
    2020-12-14 03:01

    Try deleting the *.gwt.rpc files in your war/app directory, clean and rebuild.

    One thing to note: you should avoid long or Long if possible because they are
    emulated on GWT (because there is no native Javascript long) and very
    slow. Use int instead where ever you can.

提交回复
热议问题