ITeye博客

gwt与hibernate集成时遇到的问题

lost_alien · 2010-03-25 16:38 · GWT · 编程语言 · Markdown

------------------------3月25日------------------------------------- 老是报这么个异常: com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentBag' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.

最后再这里找到了答案:

http://code.google.com/intl/zh-CN/webtoolkit/articles/using_gwt_with_hibernate.html

----------------------3月26日--------------------------------------

决定用Gilead来实现hibernate和gwt的集成了,又遇到异常:

No source code is available for type net.sf.gilead.pojo.java5.LightEntity

可能原因是domain类在extends LightEntity时,导包导错了,导成 net.sf.gilead.pojo.gwt.LightEntity 可能就好了。上帝啊。

评论(1)

  1. #1 楼 · feiqitian · 2010-03-28 21:21

    决定用Gilead来实现hibernate和gwt的集成了,又遇到异常:

    No source code is available for type net.sf.gilead.pojo.java5.LightEntity

    可能原因是domain类在extends LightEntity时,导包导错了,导成 net.sf.gilead.pojo.gwt.LightEntity 可能就好了。上帝啊。

    你应该用net.sf.gilead.pojo.gwt.LightEntity 替换它,就行了。

    关于Gilead转型的异常看我这篇帖子:http://feiqitian.iteye.com/blog/626708

评论功能维护中,当前仅展示历史评论。