Forum Discussion

nishank_78's avatar
nishank_78
New Contributor
8 years ago

org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused

Hello,

 

When I am running test cases from CMD, it is giving below error-

 

----------------------------

2016-06-15 11:15:15,007 ERROR [WsdlSubmit] Exception in request: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
2016-06-15 11:15:15,008 ERROR [errorlog] org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused

at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:279)

 

----------------------------

 

I have checked and proxy is set to none.

 

Please help.

 

Thanks,

Nishant

1 Reply

  • kondasamy's avatar
    kondasamy
    Regular Contributor

    Is it fetching response if you run through GUI?

     

    This should be Proxy/ Server related issue. Turn the proxy to automatic and try hitting the endpoint again. Also, add if any port information is missing in the endpoint.

     

    -Kondasamy