REST API请求期间出现WebSphere 500错误

时间:2016-09-12 14:17:01

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

每当我尝试使用在WebSphere上运行的应用程序发出API请求时,我会在尝试记录错误时在日志中得到此信息:

Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://cs28.salesforce.com/...
    at sun.reflect.GeneratedConstructorAccessor144.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:58)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:542)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1688)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1686)
    at java.security.AccessController.doPrivileged(AccessController.java:416)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1684)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1257)
    at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
    ... 28 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://cs28.salesforce.com/...
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1639)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:73)

通过websphere发出API请求时,我只收到500错误。邮递员和其他服务成功地提出要求,所以我很难过。有什么想法吗?

0 个答案:

没有答案