org.springframework.web.client.ResourceAccessException: I/O error: api.cloudfoundry.com; nested exception is java.net.UnknownHostException: api.cloudfoundry.com

Stack Overflow | mateusz.s | 3 years ago
  1. 0

    Cloud Foundry unable to deploy grails app [UnknownHostException]

    Stack Overflow | 3 years ago | mateusz.s
    org.springframework.web.client.ResourceAccessException: I/O error: api.cloudfoundry.com; nested exception is java.net.UnknownHostException: api.cloudfoundry.com
  2. 0

    When try to use "cloud foundry" commands with email and password, appears the following error: {code} api.cloudfoundry.com java.net.UnknownHostException: api.cloudfoundry.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) 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:411) at sun.net.www.http.HttpClient.openServer(HttpClient.java:525) Complete! at sun.net.www.http.HttpClient.<init>(HttpClient.java:208) at sun.net.www.http.HttpClient.New(HttpClient.java:291) at sun.net.www.http.HttpClient.New(HttpClient.java:310) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841) at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:73) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:46) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:409) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:287) at com.vmware.appcloud.client.AppCloudClient.login(AppCloudClient.java:180) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:529) at com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:545) at org.springframework.roo.addon.cloud.foundry.CloudFoundrySessionImpl.login(CloudFoundrySessionImpl.java:206) at org.springframework.roo.addon.cloud.foundry.CloudFoundrySessionImpl.login(CloudFoundrySessionImpl.java:218) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl$11.execute(CloudFoundryOperationsImpl.java:392) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl.executeCommand(CloudFoundryOperationsImpl.java:247) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl.login(CloudFoundryOperationsImpl.java:389) at org.springframework.roo.addon.cloud.foundry.CloudFoundryCommands.login(CloudFoundryCommands.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:64) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:146) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:662) {code} api.cloudfoundry.com is a default URL value that not exists yet. Change with new one api.run.pivotal.io and review addon functionalities.

    Spring JIRA | 2 years ago | Juan Carlos García del Canto
    java.net.UnknownHostException: api.cloudfoundry.com
  3. 0

    When try to use "cloud foundry" commands with email and password, appears the following error: {code} api.cloudfoundry.com java.net.UnknownHostException: api.cloudfoundry.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) 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:411) at sun.net.www.http.HttpClient.openServer(HttpClient.java:525) Complete! at sun.net.www.http.HttpClient.<init>(HttpClient.java:208) at sun.net.www.http.HttpClient.New(HttpClient.java:291) at sun.net.www.http.HttpClient.New(HttpClient.java:310) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841) at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:73) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:46) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:409) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:287) at com.vmware.appcloud.client.AppCloudClient.login(AppCloudClient.java:180) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:529) at com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:545) at org.springframework.roo.addon.cloud.foundry.CloudFoundrySessionImpl.login(CloudFoundrySessionImpl.java:206) at org.springframework.roo.addon.cloud.foundry.CloudFoundrySessionImpl.login(CloudFoundrySessionImpl.java:218) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl$11.execute(CloudFoundryOperationsImpl.java:392) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl.executeCommand(CloudFoundryOperationsImpl.java:247) at org.springframework.roo.addon.cloud.foundry.CloudFoundryOperationsImpl.login(CloudFoundryOperationsImpl.java:389) at org.springframework.roo.addon.cloud.foundry.CloudFoundryCommands.login(CloudFoundryCommands.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:64) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:146) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:662) {code} api.cloudfoundry.com is a default URL value that not exists yet. Change with new one api.run.pivotal.io and review addon functionalities.

    Spring JIRA | 2 years ago | Juan Carlos García del Canto
    java.net.UnknownHostException: api.cloudfoundry.com
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What is the meaning of java.net.UnknownHostException: not-existing?

    Stack Overflow | 4 years ago | andPat
    java.net.UnknownHostException: not-existing
  6. 0

    XML SAX Android parsing

    Stack Overflow | 5 years ago | Dawid Sajdak
    java.net.UnknownHostException: www.bizonek.wrzuta.pl

    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

      api.cloudfoundry.com

      at grails.plugin.cloudfoundry.GrailsHttpRequestFactory$1.intercept()
    2. grails.plugin.cloudfoundry
      GrailsHttpRequestFactory$1.intercept
      1. grails.plugin.cloudfoundry.GrailsHttpRequestFactory$1.intercept(GrailsHttpRequestFactory.java:91)
      1 frame
    3. $java.net
      HttpURLConnection$$EnhancerByCGLIB$$7c6bfa30.connect
      1. $java.net.HttpURLConnection$$EnhancerByCGLIB$$7c6bfa30.connect(<generated>)
      1 frame
    4. grails.plugin.cloudfoundry
      GrailsHttpRequest.executeInternal
      1. grails.plugin.cloudfoundry.GrailsHttpRequest.executeInternal(GrailsHttpRequest.java:75)
      2. grails.plugin.cloudfoundry.GrailsHttpRequest.executeInternal(GrailsHttpRequest.java:89)
      2 frames
    5. Spring
      RestTemplate.postForObject
      1. org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49)
      2. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446)
      3. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:409)
      4. org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:287)
      4 frames
    6. Cloud Foundry Java Client Library
      CloudFoundryClient.login
      1. org.cloudfoundry.client.lib.CloudFoundryClient.login(CloudFoundryClient.java:210)
      1 frame
    7. Unknown
      _CfCommon_groovy$_run_closure5.call
      1. ClientWrapper.methodMissing(_CfCommon_groovy:536)
      2. _CfCommon_groovy$_run_closure5.doCall(_CfCommon_groovy:110)
      3. _CfCommon_groovy$_run_closure5.call(_CfCommon_groovy)
      3 frames
    8. org.codehaus.gant
      GantMetaClass.invokeMethod
      1. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      1 frame
    9. Unknown
      CfPush$_run_closure1.doCall
      1. CfPush$_run_closure1.doCall(CfPush:40)
      1 frame
    10. org.codehaus.gant
      GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall
      1. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      2. org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      3. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      4. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      4 frames
    11. Unknown
      java_util_concurrent_Callable$call.call
      1. java_util_concurrent_Callable$call.call(Unknown Source)
      1 frame
    12. org.codehaus.gant
      GantBinding$_initializeGantBinding_closure5_closure16.doCall
      1. org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      2. org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      3. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      4. org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      4 frames
    13. Unknown
      java_util_concurrent_Callable$call.call
      1. java_util_concurrent_Callable$call.call(Unknown Source)
      1 frame
    14. gant
      Gant$_dispatch_closure7.doCall
      1. gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
      2. gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
      3. gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
      3 frames
    15. Unknown
      java_util_concurrent_Callable$call.call
      1. java_util_concurrent_Callable$call.call(Unknown Source)
      1 frame
    16. gant
      Gant.executeTargets
      1. gant.Gant.withBuildListeners(Gant.groovy:427)
      2. gant.Gant.this$2$withBuildListeners(Gant.groovy)
      3. gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
      4. gant.Gant.dispatch(Gant.groovy:415)
      5. gant.Gant.this$2$dispatch(Gant.groovy)
      6. gant.Gant.invokeMethod(Gant.groovy)
      7. gant.Gant.executeTargets(Gant.groovy:591)
      8. gant.Gant.executeTargets(Gant.groovy:590)
      8 frames