org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused

倖福魔咒の 提交于 2019-12-04 06:37:48

问题


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

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 (line 1112)

Procedure invocation error. Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused


回答1:


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.

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>


来源:https://stackoverflow.com/questions/16056361/org-apache-http-conn-httphostconnectexception-connection-to-https-jazz-net-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!