错误503使用JAX-RS服务



这是不寻常的行为,我正在尝试简单的jax-rs实现。

17215 [29943420@qtp-14485739-7] WARN org.mortbay.log - Committed before 404 null
17215 [29943420@qtp-14485739-7] ERROR org.mortbay.log - /CribService/webresources/caas/doesAuthorIDsExist
java.lang.IllegalStateException: Committed
    at org.mortbay.jetty.Response.resetBuffer(Response.java:1024)
    at org.mortbay.jetty.Response.sendError(Response.java:240)
    at org.mortbay.jetty.Response.sendError(Response.java:342)

命令:

curl -X POST -H "Content-Type: text/plain" -d '2093' http://localhost:8080/CribService/webresources/caas/doesAuthorIDsExist

有人可以解释我出错的原因,尤其是在重新启动之前,此服务在没有问题的情况下运行

需要重新启动系统并杀死码头过程,并确保您是否使用NetBean重新运行并部署了它,它不在Netbeans中部署。

最新更新