org.springframework.web.client.HttpClientErrorException: 407 Proxy Authentication Required

SpringSource Issue Tracker | Kris De Volder (c) | 3 years ago
  1. 0

    I have setup my machine behind a firewall that requires me to use an authenticating proxy to make external connection. The proxy uses 'digest' based authentication (this may or may not matter). I have the proxy setup correctly in Eclipse preferences, including user credentials. When I right click CF in servers view and attempt to 'Connect' I get this error: {code} eclipse.buildId=4.3.0.M20130911-1000 java.version=1.7.0_45 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA Framework arguments: -product org.springsource.sts.ide Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide Error Mon Dec 23 10:21:32 PST 2013 An internal error occurred during: "Connecting to server". org.springframework.web.client.HttpClientErrorException: 407 Proxy Authentication Required at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76) at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443) at org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:199) at org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.getInfoMap(CloudControllerClientFactory.java:86) at org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.newCloudController(CloudControllerClientFactory.java:65) at org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:97) at org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:89) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:72) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:55) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1614) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1596) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1586) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:118) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:113) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudSpace(CloudSpaceServerLookup.java:88) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1116) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1138) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1714) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.connect(CloudFoundryServerBehaviour.java:168) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.ConnectAction$1.run(ConnectAction.java:61) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) {code}

    SpringSource Issue Tracker | 3 years ago | Kris De Volder (c)
    org.springframework.web.client.HttpClientErrorException: 407 Proxy Authentication Required
  2. 0

    I have setup my machine behind a firewall that requires me to use an authenticating proxy to make external connection. The proxy uses 'digest' based authentication (this may or may not matter). I have the proxy setup correctly in Eclipse preferences, including user credentials. When I right click CF in servers view and attempt to 'Connect' I get this error: {code} eclipse.buildId=4.3.0.M20130911-1000 java.version=1.7.0_45 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA Framework arguments: -product org.springsource.sts.ide Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide Error Mon Dec 23 10:21:32 PST 2013 An internal error occurred during: "Connecting to server". org.springframework.web.client.HttpClientErrorException: 407 Proxy Authentication Required at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76) at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443) at org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:199) at org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.getInfoMap(CloudControllerClientFactory.java:86) at org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.newCloudController(CloudControllerClientFactory.java:65) at org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:97) at org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:89) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:72) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:55) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1614) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1596) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1586) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:118) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:113) at org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudSpace(CloudSpaceServerLookup.java:88) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1116) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1138) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1714) at org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.connect(CloudFoundryServerBehaviour.java:168) at org.cloudfoundry.ide.eclipse.internal.server.ui.actions.ConnectAction$1.run(ConnectAction.java:61) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) {code}

    SpringSource Issue Tracker | 3 years ago | Kris De Volder (c)
    org.springframework.web.client.HttpClientErrorException: 407 Proxy Authentication Required
  3. 0

    @RequestBody resulted in 415 (Unsupported Media Type); - Spring Forum

    spring.io | 1 year ago
    org.springframework.web.client.HttpClientErrorException: 415 Unsupported Media Type
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.web.client.HttpClientErrorException: 400 Bad Request

    GitHub | 2 years ago | christoph-buente
    org.springframework.web.client.HttpClientErrorException: 400 Bad Request
  6. 0

    org.springframework.web.client.HttpClientErrorException: 404 Not Found

    GitHub | 2 years ago | christoph-buente
    org.springframework.web.client.HttpClientErrorException: 404 Not Found

    2 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. org.springframework.web.client.HttpClientErrorException

      407 Proxy Authentication Required

      at org.springframework.web.client.DefaultResponseErrorHandler.handleError()
    2. Spring
      RestTemplate.doExecute
      1. org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:76)
      2. org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
      3. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)
      3 frames
    3. Cloud Foundry Java Client Library
      LoggingRestTemplate.doExecute
      1. org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54)
      1 frame
    4. Spring
      RestTemplate.getForObject
      1. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)
      2. org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:199)
      2 frames
    5. Cloud Foundry Java Client Library
      CloudFoundryClient.<init>
      1. org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.getInfoMap(CloudControllerClientFactory.java:86)
      2. org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.newCloudController(CloudControllerClientFactory.java:65)
      3. org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:97)
      4. org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:89)
      4 frames
    6. org.cloudfoundry.ide
      ConnectAction$1.run
      1. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:72)
      2. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryClientFactory.getCloudFoundryOperations(CloudFoundryClientFactory.java:55)
      3. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1614)
      4. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1596)
      5. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.createClient(CloudFoundryServerBehaviour.java:1586)
      6. org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:118)
      7. org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudOrgsAndSpaces(CloudSpaceServerLookup.java:113)
      8. org.cloudfoundry.ide.eclipse.internal.server.core.spaces.CloudSpaceServerLookup.getCloudSpace(CloudSpaceServerLookup.java:88)
      9. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1116)
      10. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.getClient(CloudFoundryServerBehaviour.java:1138)
      11. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1714)
      12. org.cloudfoundry.ide.eclipse.internal.server.core.client.CloudFoundryServerBehaviour.connect(CloudFoundryServerBehaviour.java:168)
      13. org.cloudfoundry.ide.eclipse.internal.server.ui.actions.ConnectAction$1.run(ConnectAction.java:61)
      13 frames
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      1 frame