我通过curl发布结果时收到500错误
curl -X PUT "http://xyz:8080/v1/test/086517a8-df1a-47a7-bcc7-056b08bd76d4/8911257e-7d7d-11e3-a26e-1e7184f6365b" -H Content-Type:application/json -d '{ "link":"http://xyz12.com/test.txt", "environment":"QA", "subtype":"ui", "tests": [ { "name": "lookup", "passed": "17", "failed": 0, "skipped": 0 } ], "buildNumber":"7.0.0.1192", "type":"functional"}'}'
我通过json验证器验证了json字符串。我得到的回应是:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /v1/test/086517a8-df1a-47a7-bcc7-056b08bd76d4/8911257e-7d7d -11e3-a26e-1e7184f6365b. Reason:
<pre> Server Error</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
请建议如何解决此问题。
提前致谢。
答案 0 :(得分:0)
原因之一可能是您的绑定丢失。
bind(Logic.class).to(LogicImpl.class)