Service Virtualization

  • 1.  getting java.net.ConnectException: Connection refused

    Posted Jan 22, 2018 01:44 AM

    Previously we were using separate VM machine. But now our VM machine got changed.so necessary changes has been made in app.properties file to point it to new VM Machine. But when I try to execute test cases using jenkins pipeline; I am getting below issue in logs.

    Caused By: org.springframework.ws.soap.SoapFaultException: http://ModelTSVServ001.ad.tiaa-cref.org:8237/party-request-v2 retrieveRequests; nested exception is org.springframework.ws.client.WebServiceIOException: I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused

     

    What to do to resolve this issue.



  • 2.  Re: getting java.net.ConnectException: Connection refused
    Best Answer

    Broadcom Employee
    Posted Jan 22, 2018 01:58 AM

    Hi Mahadev,

     

       Please verify below options.

    *)  Can you please verify whether you are able to access  http://ModelTSVServ001.ad.tiaa-cref.org:8237/party-request-v2 this service from browser. If yes, check the proxy details on browser. If the request is passing throw the proxy, you need to configure proxy details in Devtest local.properties file.

     

    *)  If there is no proxy configured in browser options, from command prompt check the connectivity with the command

           telnet <hostname> <port_number> ex: telnet ModelTSVServ001.ad.tiaa-cref.org 8237.

         If it returns connection timeout error, check with your network admin team about connection failure.

     

    *)  Try connecting to this webservice request using ip address.

     

    Thanks & Regards

    Srikanth Gajawada



  • 3.  Re: getting java.net.ConnectException: Connection refused

    Posted Jan 23, 2018 01:14 AM

    Hi Srikanth,

     

    issue got resolved. Thanks a lot for help.