GWT - occasional com.google.gwt.user.client.rpc.SerializationException

后端 未结 11 1155
走了就别回头了
走了就别回头了 2020-12-13 08:47

we are haunted by occasional occurences of exceptions such as:

com.google.gwt.user.client.rpc.SerializationException: Type \'xxx\' was not assignable

11条回答
  •  死守一世寂寞
    2020-12-13 09:30

    I had the same problem and I found a solution from another person:

    "There is a possibility that you have a class which implements Serializable and you have an attribute field within that class which is not Serializable hence you might be getting this exception."

    Many thanks to that person :)

    My advice is to make all fields (which are not primitive types) in your class to implement Serializable also! This solved my problem.

提交回复
热议问题