org.apache.http.conn.HttpHostConnectException:拒绝访问https://jazz.net [英] org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused
问题描述
我已经将我的工作灯升级到5.0.5到5.0.6。当我使用5.0.5它工作正常但相同的代码,当我在更新版本worklight 5.0.6使用它给我这个错误
i have upgraded my worklight with 5.0.5 to 5.0.6 .when i have worked on 5.0.5 it worked fine but the same code when i am using in updated version worklight 5.0.6 it gives me this error
响应[/ apps / services / api / RTMLight / common / query]成功:/ -secure-
{responseID:2, errors:[运行时:Http请求失败:org.apache.http.conn.HttpHostConnectException:连接到https://jazz.net被拒绝],isSuccessful:false,warnings:[],info :[]} /
response [/apps/services/api/RTMLight/common/query] success: /-secure- {"responseID":"2","errors":["Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused"],"isSuccessful":false,"warnings":[],"info":[]}/
worklight.js(第1112行)
worklight.js (line 1112)
程序调用错误。运行时:Http请求失败:org.apache.http.conn.HttpHostConnectException:与 https://jazz.net 的连接被拒绝
Procedure invocation error. Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused
推荐答案
这与5.0.5到5.0.6之间的任何升级问题都没有关系。从错误消息中看,这似乎与连接问题有关。
This does not sound related to any upgrade issue between 5.0.5 to 5.0.6. From the error message this seems more related to connectivity issues.
确保适配器的connectionPolicy使用值为443的port子元素,如下所示:
Make sure that your adapter's connectionPolicy uses the port child-element with value 443, like this:
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>https</protocol>
<domain>jazz.net</domain>
<port>443</port>
</connectionPolicy>
<loadConstraints maxConcurrentConnectionsPerNode="2" />
</connectivity>
这篇关于org.apache.http.conn.HttpHostConnectException:拒绝访问https://jazz.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!