Ashwini Maddala
Ashwini Maddala

Reputation: 197

org.apache.http.conn.HttpHostConnectException

I am getting the following error when i am trying to connect to a url https://jazz.net on worklight 5.0.6..

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

This is the response I am getting in log:

{"responseID":"6","errors":["Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused"],"isSuccessful":false,"warnings":[],"info":[]}*/

Here is the adapter xml code:

  <connectivity>
    <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
        <protocol>https</protocol>
        <domain>jazz.net</domain>
</connectionPolicy>
    <loadConstraints maxConcurrentConnectionsPerNode="2" />
</connectivity>

Upvotes: 1

Views: 3623

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

You need to also add a child-element port with the value 443.

Upvotes: 2

Related Questions