java.net.ConnectException: Connection refused

GitHub | JuanMiguelBG | 7 months ago
  1. 0

    google-api-translate-java-maven-plugin | Robert Savage

    savage7.com | 2 years ago
    java.lang.Exception: [google-api-translate-java] Error retrieving translation.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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 | 3 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
  4. 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 | 3 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

  1. Hronom 9 times, last 1 week ago
  2. regisso 3 times, last 7 months ago
6 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.getInputStream
    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:997)
    15. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
    16. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
    17. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    17 frames
  3. Jasig CAS Client for Java - Core
    Cas20ServiceTicketValidatorTests.testNoResponse
    1. org.jasig.cas.client.util.CommonUtils.getResponseFromServer(CommonUtils.java:436)
    2. org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.retrieveResponseFromServer(AbstractCasProtocolUrlBasedTicketValidator.java:41)
    3. org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:193)
    4. org.jasig.cas.client.validation.Cas20ServiceTicketValidatorTests.testNoResponse(Cas20ServiceTicketValidatorTests.java:86)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. JUnit
    ParentRunner$1.schedule
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    6. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    10 frames