SerializationPolicy error when performing RPC from within GWT application

后端 未结 10 2087
醉梦人生
醉梦人生 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 02:52

    The problem can also be because the code on your local machine on which you are running hosted mode is not the same as the one on the external server you are connecting to via RPC. So in my case i was missing a git pull on my local machine to match what was deployed on the external server. The changes were minimal, just a new property in one of the classes that were included in the gwt.rpc, but this was already sufficient that the gwt.rpc md5 filenames were different and thus the above mentioned error occurred.

提交回复
热议问题