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
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

    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

    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