この場合、JerseyWithPadding(com.sun.jersey.api.json.JSONWithPadding)を使用してオブジェクトをラップしました。 JsonWithPaddingがなければ、正しいJSON応答を返します。完全JsonWithPaddingでの作業持っJSONWithPadding - JERSEY JAX-RS RESTのCORS関連エラー500問題
、それは私が、私は日食ネオンを使用していジャージー2に切り替えてくれイベントに次のエラーを与える、tomcatの8
それも、むしろ、コンソール上の任意のエラーをスローしませんアクセスログに500というエラーが見つかりました。私はそれがセキュリティ(トロイの木馬)の問題であると確信しています。
アクセスログ
172.22.14.88 - - [13// 2017年6月:09:17:49 -0400] "GET/csmgt /休憩/クライアント/ HTTP/1.1"
応答:
<!DOCTYPE html>
<html>
<head>
<title>Apache Tomcat/8.0.28 - Error report</title>
<style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style>
</head>
<body>
<h1>HTTP Status 500 - Internal Server Error</h1>
<div class="line"></div>
<p>
<b>type</b> Status report
</p>
<p>
<b>message</b>
<u>Internal Server Error</u>
</p>
<p>
<b>description</b>
<u>The server encountered an internal error that prevented it from fulfilling this request.</u>
</p>
<hr class="line">
<h3>Apache Tomcat/8.0.28</h3>
</body>
</html>
JsonWithPadding持つすべてのヘルプは高く評価されます。