GlassFish 4.0 w/ Jersey returns 500 internal server error without exception

青春壹個敷衍的年華 提交于 2019-12-03 07:54:25

Make sure you don't have any cyclic references in graph (objects) you're trying to marshall to XML. For example, this could cause a problem:

User -> IssueComment -> (the same) User

or

User -> IssueComment -> Issue -> IssueComment -> (the same) User

Such structures cannot be marshalled into XML.

Note: Add @XmlRootElement annotation to IssueComment (I think it's not needed but it's better to have it there).

Note: We know about the logging issue and it will be solved as a part of JERSEY-2000.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!