java.net.ConnectException: Connection refused: connect

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

java.net.ConnectException: Connection refused: connect

Vijayaratha Vijayasingam-2
Hi all,
When i try to send a SOAP message to my application, I get the following
exception.
Can anybody explain me why this occurs?

Thanks.
-Ratha.

ERROR:java.lang.Exception: java.net.ConnectException: Connection
refused: connect
   java.lang.Exception: java.net.ConnectException: Connection refused:
connect
       at
com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:167)
       at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
       at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
       at java.util.concurrent.FutureTask.run(FutureTask.java:123)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:595)
   Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:520)
       at java.net.Socket.connect(Socket.java:470)
       at java.net.Socket.<init>(Socket.java:367)
       at java.net.Socket.<init>(Socket.java:240)
       at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
       at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
       at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
       at
com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1401)
       at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
       at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
       at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
       at
com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:152)
       ... 7 more

Reply | Threaded
Open this post in threaded view
|

Re: java.net.ConnectException: Connection refused: connect

Alex Boisvert-3
Wrong SOAP address?

alex

On Sat, Nov 1, 2008 at 12:22 AM, ratha <[hidden email]> wrote:

> Hi all,
> When i try to send a SOAP message to my application, I get the following
> exception.
> Can anybody explain me why this occurs?
>
> Thanks.
> -Ratha.
>
> ERROR:java.lang.Exception: java.net.ConnectException: Connection refused:
> connect
>  java.lang.Exception: java.net.ConnectException: Connection refused:
> connect
>      at
> com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:167)
>      at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>      at java.lang.Thread.run(Thread.java:595)
>  Caused by: java.net.ConnectException: Connection refused: connect
>      at java.net.PlainSocketImpl.socketConnect(Native Method)
>      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>      at java.net.Socket.connect(Socket.java:520)
>      at java.net.Socket.connect(Socket.java:470)
>      at java.net.Socket.<init>(Socket.java:367)
>      at java.net.Socket.<init>(Socket.java:240)
>      at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
>      at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
>      at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>      at
> com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1401)
>      at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>      at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>      at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>      at
> com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:152)
>      ... 7 more
>
>
Reply | Threaded
Open this post in threaded view
|

Re: java.net.ConnectException: Connection refused: connect

Vijayaratha Vijayasingam-2
Hi Alex,
Thanks, now it's working..

Rgds,
-Ratha.

Alex Boisvert wrote:

> Wrong SOAP address?
>
> alex
>
> On Sat, Nov 1, 2008 at 12:22 AM, ratha <[hidden email]> wrote:
>
>  
>> Hi all,
>> When i try to send a SOAP message to my application, I get the following
>> exception.
>> Can anybody explain me why this occurs?
>>
>> Thanks.
>> -Ratha.
>>
>> ERROR:java.lang.Exception: java.net.ConnectException: Connection refused:
>> connect
>>  java.lang.Exception: java.net.ConnectException: Connection refused:
>> connect
>>      at
>> com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:167)
>>      at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
>>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>>      at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>      at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>      at java.lang.Thread.run(Thread.java:595)
>>  Caused by: java.net.ConnectException: Connection refused: connect
>>      at java.net.PlainSocketImpl.socketConnect(Native Method)
>>      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>      at java.net.Socket.connect(Socket.java:520)
>>      at java.net.Socket.connect(Socket.java:470)
>>      at java.net.Socket.<init>(Socket.java:367)
>>      at java.net.Socket.<init>(Socket.java:240)
>>      at
>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
>>      at
>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
>>      at
>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>>      at
>> com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1401)
>>      at
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>>      at
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>      at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>      at
>> com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:152)
>>      ... 7 more
>>
>>
>>    
>
>  
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.8.5/1759 - Release Date: 10/31/2008 4:10 PM
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: java.net.ConnectException: Connection refused: connect

kvvsharat
In reply to this post by Vijayaratha Vijayasingam-2
I am having the same issue with proxy settings enabled in it. I get the following messages:

Wed Mar 18 16:15:08 GMT 2009:ERROR:java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:239)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1330)
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 com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:153)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:112)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Reply | Threaded
Open this post in threaded view
|

Re: java.net.ConnectException: Connection refused: connect

hbdrawn
In reply to this post by Vijayaratha Vijayasingam-2
anyone who solves the problem?and how?
rathav wrote
Hi all,
When i try to send a SOAP message to my application, I get the following
exception.
Can anybody explain me why this occurs?

Thanks.
-Ratha.

ERROR:java.lang.Exception: java.net.ConnectException: Connection
refused: connect
   java.lang.Exception: java.net.ConnectException: Connection refused:
connect
       at
com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:167)
       at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
       at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
       at java.util.concurrent.FutureTask.run(FutureTask.java:123)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:595)
   Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:520)
       at java.net.Socket.connect(Socket.java:470)
       at java.net.Socket.<init>(Socket.java:367)
       at java.net.Socket.<init>(Socket.java:240)
       at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
       at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
       at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
       at
com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1401)
       at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
       at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
       at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
       at
com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:152)
       ... 7 more