could not load class persistentBag

巧了我就是萌 提交于 2019-12-07 09:12:31

You are sending a hibernate entity / collection. There are a few issues:

  • the collection might not be loaded
  • the endpoint might not have hibernate on its classpath.

So before sending it, you should initialize the collection and unproxy it (i.e. obtain the original collection). That may still not work, because hibernate sets its own collections that implement java.util.List. So from there you have two options:

  • create new ArrayList(originalCollection) - this will copy the elements in a ArrayList
  • add hibernate on the classpath of the endpoint.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!