org.springframework.web.client.ResourceAccessException

tip

Check if you don't have a VPN or something like this messing with your connection. Also, check Jenkins DNS configurations (try to start it with "--dns 8.8.8.8".

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

  • 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}}
    via by Eric PErez,
  • 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}}
    via by Eric PErez,
  • IDE 1.6.4 is now available for download
    via by Unknown author,
  • Problem with SMP lookup
    via GitHub by oskaremil
    ,
  • Minecraft Galaxy
    via by Unknown author,
  • JMeter - User - Recorded server name problem
    via by Unknown author,
    • 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)

    Users with the same issue

    ivanszkypeter
    2 times, last one,
    musketyr
    2 times, last one,
    tyson925
    27 times, last one,
    Hronom
    1 times, last one,
    Unknown visitor1 times, last one,
    109 more bugmates