org.springframework.web.client.ResourceAccessException

I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused

Samebug tips4

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4969

  • via Unknown by Nieraj Singh (c),
  • via Unknown by Nieraj Singh (c),
  • Stack trace

    • org.springframework.web.client.ResourceAccessException: I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:453) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:199) at org.cloudfoundry.client.lib.CloudFoundryClient.getApplications(CloudFoundryClient.java:219) at com.vmware.appcloud.client.cloudfoundry.UaaAwareCloudFoundryClient.getApplications(UaaAwareCloudFoundryClient.java:331) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.doRefreshModules(CloudFoundryServerBehaviour.java:698) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$15.doRun(CloudFoundryServerBehaviour.java:355) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$15.doRun(CloudFoundryServerBehaviour.java:1) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1003) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.refreshModules(CloudFoundryServerBehaviour.java:358) at com.cloudfoundry.sts.internal.server.core.RefreshJob.run(RefreshJob.java:54) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.net.ConnectException: Connection refused 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:432) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:395) at sun.net.www.http.HttpClient.openServer(HttpClient.java:530) at sun.net.www.http.HttpClient.<init>(HttpClient.java:234) at sun.net.www.http.HttpClient.New(HttpClient.java:307) at sun.net.www.http.HttpClient.New(HttpClient.java:324) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:949) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at org.springframework.http.client.SimpleClientHttpRequest.executeInternal(SimpleClientHttpRequest.java:69) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    MalcshourMalcshour
    Once,
    batwalrus76batwalrus76
    5 times, last one
    slashslash
    2 times, last one
    tvrmsmithtvrmsmith
    Once,
    294 more bugmates