1

我在使用 GWT 和 Gilead/Hibernate 时遇到了一些问题

我根据教程做了我的代码,但它失败了 com.google.gwt.user.client.rpc.SerializationException: Type 'ru.atamur.entity.UserEntity_gilead_15' is not included in the set of types that can be serialized by this无法加载 SerializationPolicy 或其 Class 对象。出于安全考虑,此类型不会被序列化。:instance = ru.atamur.entity.UserEntity_gilead_15@133fa82

查看源代码,我可以看到 Gilead 在 GileadRPCHelper.parseReturnValue(returnValue, _beanManager) 中将我的 UserEntity 转换为 UserEntity_gilead_15

我可以看到这是 ProxyClassMapper 故意完成的(我正在尝试使用代理模式),所以我想知道 Gilead 期望在哪里告诉 GWT Serilization 机制它引入的这个新代理类......

4

1 回答 1

0

你能分享你的代码吗?

在此之前,我想说的是,当您的类未实现您将其发送到服务器的isSerializable接口时,会引发SerializationException 。

您发送到服务器的每个类都应该实现isSerializable接口

于 2010-12-08T19:33:41.643 回答