在休息呼叫中获得500内部服务器错误

时间:2016-09-07 19:18:34

标签: java rest http-status-code-500

在休眠输出数据后得到此错误,任何想法为什么会发生这种情况。请帮忙!

Sep 07, 2016 12:07:00 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl stop
INFO: HHH000030: Cleaning up connection pool [jdbc:postgresql://localhost:5432/bendb]
Sep 07, 2016 12:07:00 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 3 * Server responded with a response on thread http-nio-8080-exec-5
3 < 200
3 < Access-Control-Allow-Methods: GET, POST, DELETE, PUT
3 < Access-Control-Allow-Origin: *
3 < Allow: OPTIONS
3 < Content-Type: application/json

Sep 07, 2016 12:07:00 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 4 * Server responded with a response on thread http-nio-8080-exec-5
4 < 500

1 个答案:

答案 0 :(得分:0)

很抱歉在我的代码中发现了一个错误,所以显然我所做的代码更改是试图映射所有联结表(集合),以便获得用户休息呼叫,因此在尝试执行此操作时,jersey就会爆发。 un评论该代码并仅传递正常数据集解决了这个问题。

相关问题