我正在编写一个基于RMI的小型聊天应用程序。思路是:Client在Server上注册自己,Server每次收到一个Client的消息,就把这条消息推送给所有其他Client。但是我收到了一个NotSerializableException,尽管我作为方法参数传递的对象实现了Remote接口(interface)。这是一些代码:(有问题的部分是this.chatServ.registriereClient(this);(ClientChat实现)中的this参数)(ClientChat)接口(interface):publicinterfaceChatClientextendsRemot