在gwt开发模式下运行时出现com.google.gwt.user.client.rpc.SerializationException异常

在gwt开发模式下运行时出现com.google.gwt.user.client.rpc.SerializationException异常,gwt,gxt,Gwt,Gxt,当我们在GWT-Dev模式下运行应用程序时,我们会得到如下所示的序列化异常,如果我们在Dev模式之外运行,则不会得到这些异常。有什么想法吗?请注意,所讨论的类MySDO是从com.extjs.gxt.ui.client.data.BaseModel扩展而来的,它本身是可序列化的,并且还有一个公共的无参数构造函数 Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.foo.MySDO' was no

当我们在GWT-Dev模式下运行应用程序时,我们会得到如下所示的序列化异常,如果我们在Dev模式之外运行,则不会得到这些异常。有什么想法吗?请注意,所讨论的类MySDO是从com.extjs.gxt.ui.client.data.BaseModel扩展而来的,它本身是可序列化的,并且还有一个公共的无参数构造函数

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.foo.MySDO' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = com.foo.MySDO@fd4410
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:610) [:]
    at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) [:]
    at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43) [:]
    at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36) [:]

可能是com.foo.MySDO包含其他一些不可序列化类型

该类中是否有空构造函数MySDO()?是的,我有空构造函数。此外,我还有一个属于这个类的数据成员。它还从GXT BaseModel扩展而来&具有en空构造函数。