org.springframework.web.client.ResourceAccessException: I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via SpringSource Issue Tracker by Nieraj Singh (c), 1 year ago
I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused
via SpringSource Issue Tracker by Nieraj Singh (c), 1 year ago
I/O error: Connection refused; nested exception is java.net.ConnectException: Connection refused
via Google Groups by Ludovic Deravet, 7 months ago
I/O error: Stream closed; nested exception is java.io.IOException: Stream closed
via wordpress.com by Unknown author, 1 year ago
I/O error: HTTPS hostname wrong:  should be <some url>; nested exception is java.io.IOException: HTTPS hostname wrong:  should be <some url>
via wordpress.com by Unknown author, 1 year ago
I/O error: HTTPS hostname wrong:  should be <some url>; nested exception is java.io.IOException: HTTPS hostname wrong:  should be <some url>
via wordpress.com by Unknown author, 1 year ago
I/O error: HTTPS hostname wrong:  should be <some url>; nested exception is java.io.IOException: HTTPS hostname wrong:  should be <some url>
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.(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 org.springframework.http.client.SimpleClientHttpRequest.executeInternal(SimpleClientHttpRequest.java:69)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52)

Users with the same issue

142 times, 10 hours ago
8 times, 1 day ago
552 times, 1 day ago
11 times, 4 days ago
26943 times, 4 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.