GWT - RPC SerializationException

前端 未结 6 1830
感情败类
感情败类 2020-12-05 15:38

It\'s been a while since I\'ve been doing GWT and I needed something small done quickly. I set things up and now I have a RPC I need, but it fails.

The RPC is suppos

6条回答
  •  情书的邮戳
    2020-12-05 16:01

    First of all, be sure to have defined an empty constructor.
    If not, your class will not be serializable ...

    If you have an empty constructor, be sure that your class (or any class in the extends chain) implements IsSerializable (or any other interface which extends IsSerialisable)

    If your class implements IsSerialisable, check it is non-final ...

提交回复
热议问题