org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9393/jobs/definitions?size=10000&deployments=true":Connection refused; nested exception is java.net.ConnectException: Connection refused

Spring JIRA | Eric Bottard | 2 years ago
  1. 0

    The XD shell completion crashes on: job launch --name <TAB> gives {noformat} xd:>job launch --name Exception in thread "Spring Shell" java.lang.IllegalStateException: Could not determine kind: tab-completion-count-1 existing-job disable-string-converter at org.springframework.xd.shell.converter.CompletionConverter.determineKind(CompletionConverter.java:109) at org.springframework.xd.shell.converter.CompletionConverter.getAllPossibleValues(CompletionConverter.java:69) at org.springframework.shell.core.SimpleParser.completeAdvanced(SimpleParser.java:857) at org.springframework.shell.core.ParserCompleter.complete(ParserCompleter.java:47) at jline.console.ConsoleReader.complete(ConsoleReader.java:3077) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2501) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2150) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:522) at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) at java.lang.Thread.run(Thread.java:744) {noformat} Moreover, seems completion generally crashes when the server is not up (which was taken care of previously if I'm not mistaken): xd:>job destroy --name <TAB> {noformat} Exception in thread "Spring Shell" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9393/jobs/definitions?size=10000&deployments=true":Connection refused; nested exception is java.net.ConnectException: Connection refused at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:561) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:506) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:243) at org.springframework.xd.rest.client.impl.JobTemplate.list(JobTemplate.java:121) at org.springframework.xd.rest.client.impl.JobTemplate.list(JobTemplate.java:40) at org.springframework.xd.shell.converter.ExistingXDEntityConverter.getAllPossibleValues(ExistingXDEntityConverter.java:72) at org.springframework.shell.core.SimpleParser.completeAdvanced(SimpleParser.java:857) at org.springframework.shell.core.ParserCompleter.complete(ParserCompleter.java:47) at jline.console.ConsoleReader.complete(ConsoleReader.java:3077) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2501) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2150) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:522) at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) at java.lang.Thread.run(Thread.java:744) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:78) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) {noformat}

    Spring JIRA | 2 years ago | Eric Bottard
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9393/jobs/definitions?size=10000&deployments=true":Connection refused; nested exception is java.net.ConnectException: Connection refused
  2. 0

    The XD shell completion crashes on: job launch --name <TAB> gives {noformat} xd:>job launch --name Exception in thread "Spring Shell" java.lang.IllegalStateException: Could not determine kind: tab-completion-count-1 existing-job disable-string-converter at org.springframework.xd.shell.converter.CompletionConverter.determineKind(CompletionConverter.java:109) at org.springframework.xd.shell.converter.CompletionConverter.getAllPossibleValues(CompletionConverter.java:69) at org.springframework.shell.core.SimpleParser.completeAdvanced(SimpleParser.java:857) at org.springframework.shell.core.ParserCompleter.complete(ParserCompleter.java:47) at jline.console.ConsoleReader.complete(ConsoleReader.java:3077) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2501) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2150) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:522) at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) at java.lang.Thread.run(Thread.java:744) {noformat} Moreover, seems completion generally crashes when the server is not up (which was taken care of previously if I'm not mistaken): xd:>job destroy --name <TAB> {noformat} Exception in thread "Spring Shell" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9393/jobs/definitions?size=10000&deployments=true":Connection refused; nested exception is java.net.ConnectException: Connection refused at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:561) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:506) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:243) at org.springframework.xd.rest.client.impl.JobTemplate.list(JobTemplate.java:121) at org.springframework.xd.rest.client.impl.JobTemplate.list(JobTemplate.java:40) at org.springframework.xd.shell.converter.ExistingXDEntityConverter.getAllPossibleValues(ExistingXDEntityConverter.java:72) at org.springframework.shell.core.SimpleParser.completeAdvanced(SimpleParser.java:857) at org.springframework.shell.core.ParserCompleter.complete(ParserCompleter.java:47) at jline.console.ConsoleReader.complete(ConsoleReader.java:3077) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2501) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162) at jline.console.ConsoleReader.readLine(ConsoleReader.java:2150) at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:522) at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) at java.lang.Thread.run(Thread.java:744) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:78) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) {noformat}

    Spring JIRA | 2 years ago | Eric Bottard
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9393/jobs/definitions?size=10000&deployments=true":Connection refused; nested exception is java.net.ConnectException: Connection refused
  3. 0

    Activator fails to start when port 8888 is already bound.

    GitHub | 3 years ago | senia-psm
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code} Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.707 sec <<< FAILURE! listenSameAddressTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.297 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenSameAddressTest(ServiceSocketBindIntegrationTest.java:179) listenEmptyTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.385 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenEmptyTest(ServiceSocketBindIntegrationTest.java:109) listenWildcardTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.28 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenWildcardTest(ServiceSocketBindIntegrationTest.java:132) {code}

    JIRA | 1 year ago | Andrew Audibert
    java.net.ConnectException: Connection refused
  6. 0

    {code} Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.707 sec <<< FAILURE! listenSameAddressTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.297 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenSameAddressTest(ServiceSocketBindIntegrationTest.java:179) listenEmptyTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.385 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenEmptyTest(ServiceSocketBindIntegrationTest.java:109) listenWildcardTest(tachyon.master.ServiceSocketBindIntegrationTest) Time elapsed: 0.28 sec <<< ERROR! java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) at tachyon.master.ServiceSocketBindIntegrationTest.connectServices(ServiceSocketBindIntegrationTest.java:95) at tachyon.master.ServiceSocketBindIntegrationTest.listenWildcardTest(ServiceSocketBindIntegrationTest.java:132) {code}

    JIRA | 1 year ago | Andrew Audibert
    java.net.ConnectException: Connection refused

  1. tvrmsmith 1 times, last 1 month ago
  2. musketyr 2 times, last 2 months ago
  3. Malcshour 1 times, last 6 months ago
25 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    HttpURLConnection.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    7. java.net.Socket.connect(Socket.java:528)
    8. sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    9. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    10. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    11. sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    12. sun.net.www.http.HttpClient.New(HttpClient.java:308)
    13. sun.net.www.http.HttpClient.New(HttpClient.java:326)
    14. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
    15. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
    16. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
    16 frames
  3. Spring
    AbstractClientHttpRequest.execute
    1. org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:78)
    2. org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
    3. org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52)
    3 frames