BW throws "java.io.IOException: Failed to create secure client socket: Connection refused: connect".

BW throws "java.io.IOException: Failed to create secure client socket: Connection refused: connect".

book

Article ID: KB0087584

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
BW throws "java.io.IOException: Failed to create secure client socket: Connection refused: connect".
Symptoms:
java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
    at com.tibco.security.ssl.A.E.createSocket(SSLClientImpl.java:150)
    at com.tibco.plugin.share.security.TIBCryptClientSocketFactory.createSocket(Unknown Source)
    at com.tibco.plugin.share.security.TIBCryptClientSocketFactory.createSocket(Unknown Source)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at com.tibco.plugin.share.http.client.JakartaHttpTransportDriver$RequestExecutor.run(Unknown Source)
    at com.tibco.pe.util.ThreadPool$ThreadPoolThread.run(Unknown Source)
2012 Jul 16 15:23:11:589 GMT +8 BW.http-ssl Error [BW_Plugin] BW-HTTP-100300 Job-101 Error in [client.process/Send HTTP Request]
An IOException was thrown while trying to execute the Http method
    at com.tibco.plugin.share.http.client.JakartaHttpTransportDriver$RequestExecutor.run(Unknown Source)
    at com.tibco.pe.util.ThreadPool$ThreadPoolThread.run(Unknown Source)
caused by: java.io.IOException: Failed to create secure client socket: Connection refused: connect
    at com.tibco.plugin.share.security.TIBCryptClientSocketFactory.createSocket(Unknown Source)
    at com.tibco.plugin.share.security.TIBCryptClientSocketFactory.createSocket(Unknown Source)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at com.tibco.plugin.share.http.client.JakartaHttpTransportDriver$RequestExecutor.run(Unknown Source)
    at com.tibco.pe.util.ThreadPool$ThreadPoolThread.run(Unknown Source)
<?xml version="1.0" encoding="UTF-8"?>
<Data>
    <ns0:HttpCommunicationException xmlns:ns0="http://schemas.tibco.com/bw/plugins/http/5.0/httpExceptions">
        <msg>An IOException was thrown while trying to execute the Http method</msg>
        <msgCode>BW-HTTP-100300</msgCode>
    </ns0:HttpCommunicationException>
</Data>

Cause:
This is caused by using an incorrect port number.

Issue/Introduction

BW throws "java.io.IOException: Failed to create secure client socket: Connection refused: connect".

Resolution

The default SSL port number for HTTP is 443. Try this port number first.