org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://hadoop1.example.com:34549/modules?size=10000":hadoop1.example.com; nested exception is java.net.UnknownHostException: hadoop1.example.com

Spring JIRA | Eric PErez | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Expected result: Spring XD shell does not crash on autocomplete when network connection is lost but rather detects the condition and handles it. Actual result: Spring XD shell crashes when the "module info --name" command is autocompleted and the network connection to the server is lost/gone. The 'version' shell command reports: 2.0.0-SNAPSHOT (built from git e19dde0ecf91a268fb95895071717d05427b8ddd) I don't see a 'Relates To' Field in this JIRA but this bug is similar to this one: https://jira.spring.io/browse/XD-1938 Steps to reproduce: -Open Spring XD Shell -Connect to a sever e.g. "admin config server http://hadoop1.example.com" -Disable all network connections (turn off Wi-Fi, unplug, however you want to do it) -Type "module info --name [tab]" Stack Trace: {{xd:>module info --name Exception in thread "Spring Shell" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://hadoop1.example.com:34549/modules?size=10000":hadoop1.example.com; nested exception is java.net.UnknownHostException: hadoop1.example.com at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:584) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:236) at org.springframework.xd.rest.client.impl.ModuleTemplate.list(ModuleTemplate.java:75) at org.springframework.xd.rest.client.impl.ModuleTemplate.list(ModuleTemplate.java:37) at org.springframework.xd.shell.converter.QualifiedModuleNameConverter.getAllPossibleValues(QualifiedModuleNameConverter.java:89) 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:745) Caused by: java.net.UnknownHostException: hadoop1.example.com at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) 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:81) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:568) ... 14 more}}

    Spring JIRA | 2 years ago | Eric PErez
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://hadoop1.example.com:34549/modules?size=10000":hadoop1.example.com; nested exception is java.net.UnknownHostException: hadoop1.example.com
  2. 0

    Expected result: Spring XD shell does not crash on autocomplete when network connection is lost but rather detects the condition and handles it. Actual result: Spring XD shell crashes when the "module info --name" command is autocompleted and the network connection to the server is lost/gone. The 'version' shell command reports: 2.0.0-SNAPSHOT (built from git e19dde0ecf91a268fb95895071717d05427b8ddd) I don't see a 'Relates To' Field in this JIRA but this bug is similar to this one: https://jira.spring.io/browse/XD-1938 Steps to reproduce: -Open Spring XD Shell -Connect to a sever e.g. "admin config server http://hadoop1.example.com" -Disable all network connections (turn off Wi-Fi, unplug, however you want to do it) -Type "module info --name [tab]" Stack Trace: {{xd:>module info --name Exception in thread "Spring Shell" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://hadoop1.example.com:34549/modules?size=10000":hadoop1.example.com; nested exception is java.net.UnknownHostException: hadoop1.example.com at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:584) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:236) at org.springframework.xd.rest.client.impl.ModuleTemplate.list(ModuleTemplate.java:75) at org.springframework.xd.rest.client.impl.ModuleTemplate.list(ModuleTemplate.java:37) at org.springframework.xd.shell.converter.QualifiedModuleNameConverter.getAllPossibleValues(QualifiedModuleNameConverter.java:89) 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:745) Caused by: java.net.UnknownHostException: hadoop1.example.com at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) 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:81) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:568) ... 14 more}}

    Spring JIRA | 2 years ago | Eric PErez
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://hadoop1.example.com:34549/modules?size=10000":hadoop1.example.com; nested exception is java.net.UnknownHostException: hadoop1.example.com
  3. 0

    IDE 1.6.4 is now available for download

    arduino.cc | 11 months ago
    java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Nested events clear Window.event incorrectly

    htmlunit | 10 years ago | salk31
    java.net.UnknownHostException: htmlunit.sourceforge.net
  6. 0

    dependency-check: configuration of proxy and port in Jenkins plugin

    Google Groups | 2 years ago | Unknown author
    org.owasp.dependencycheck.utils.DownloadFailedException: Error making HTTP HEAD request.

  1. tyson925 27 times, last 4 months ago
  2. Hronom 1 times, last 5 months ago
9 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.UnknownHostException

    hadoop1.example.com

    at java.net.AbstractPlainSocketImpl.connect()
  2. Java RT
    HttpURLConnection.connect
    1. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
    2. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    3. java.net.Socket.connect(Socket.java:579)
    4. java.net.Socket.connect(Socket.java:528)
    5. sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    6. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    7. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    8. sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    9. sun.net.www.http.HttpClient.New(HttpClient.java:308)
    10. sun.net.www.http.HttpClient.New(HttpClient.java:326)
    11. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
    12. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
    13. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
    13 frames
  3. Spring
    RestTemplate.doExecute
    1. org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:81)
    2. org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
    3. org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
    4. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:568)
    4 frames