【发布时间】:2010-12-08 18:08:03
【问题描述】:
我在使用 GWT 和 Gilead/Hibernate 时遇到了一些问题
我根据教程做了我的代码,但它失败了 com.google.gwt.user.client.rpc.SerializationException:类型“ru.atamur.entity.UserEntity_gilead_15”未包含在可由此 SerializationPolicy 序列化的类型集中,或者无法加载其 Class 对象。出于安全考虑,此类型不会被序列化。: instance = ru.atamur.entity.UserEntity_gilead_15@133fa82
查看源代码我可以看到 Gilead 在 GileadRPCHelper.parseReturnValue(returnValue, _beanManager) 中将我的 UserEntity 转换为 UserEntity_gilead_15
我可以看到这是 ProxyClassMapper 故意完成的(我正在尝试使用代理模式),所以我想知道 Gilead 期望在哪里告诉 GWT Serilization 机制它引入的这个新代理类......
【问题讨论】:
-
嗨,这个问题的解决方法是什么?我有同样的问题,似乎没有任何效果(我也实现了 isSerializable。)
-
只是使用另一种类型的 gilead 支持:我正在扩展 LightEntity,它工作正常(如果你问我,虽然不漂亮)