org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.

GitHub | lucaverderame | 5 months ago
  1. 1

    Cannot connect to Bluemix CF

    GitHub | 5 months ago | lucaverderame
    org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.

    Root Cause Analysis

    1. org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException

      Error requesting access token.

      at org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport.retrieveToken()
    2. OAuth2 for Spring Security
      OAuth2RestTemplate.createRequest
      1. org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport.retrieveToken(OAuth2AccessTokenSupport.java:145)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      2. org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider.obtainAccessToken(ResourceOwnerPasswordAccessTokenProvider.java:47)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      3. org.springframework.security.oauth2.client.OAuth2RestTemplate.acquireAccessToken(OAuth2RestTemplate.java:221)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      4. org.springframework.security.oauth2.client.OAuth2RestTemplate.getAccessToken(OAuth2RestTemplate.java:173)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      5. org.springframework.security.oauth2.client.OAuth2RestTemplate.createRequest(OAuth2RestTemplate.java:105)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      5 frames
    3. Spring
      RestTemplate.doExecute
      1. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:592)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
      1 frame
    4. OAuth2 for Spring Security
      OAuth2RestTemplate.doExecute
      1. org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:128)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
      1 frame
    5. Spring
      RestTemplate.getForObject
      1. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:572)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
      2. org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:280)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
      2 frames
    6. org.cloudfoundry.spring
      AbstractSpringOperations.lambda$null$1
      1. org.cloudfoundry.spring.util.AbstractSpringOperations.lambda$get$3(AbstractSpringOperations.java:85)[cloudfoundry-client-spring-2.0.0.M4.jar!/:2.0.0.M4]
      2. org.cloudfoundry.spring.util.AbstractSpringOperations.lambda$null$1(AbstractSpringOperations.java:66)[cloudfoundry-client-spring-2.0.0.M4.jar!/:2.0.0.M4]
      2 frames
    7. reactor.core.publisher
      FluxYieldingEmitter$YieldingSignalEmitter.request
      1. reactor.core.publisher.FluxYieldingEmitter$YieldingSignalEmitter.request(FluxYieldingEmitter.java:75)[reactor-core-2.5.0.M3.jar!/:na]
      1 frame
    8. reactor.core.util
      DeferredSubscription.set
      1. reactor.core.util.DeferredSubscription.set(DeferredSubscription.java:71)[reactor-core-2.5.0.M3.jar!/:na]
      1 frame
    9. reactor.core.publisher
      FluxSubscribeOn$SubscribeOnPipeline.onSubscribe
      1. reactor.core.publisher.FluxSubscribeOn$SubscribeOnPipeline.onSubscribe(FluxSubscribeOn.java:129)[reactor-core-2.5.0.M3.jar!/:na]
      1 frame
    10. reactor.core.subscriber
      SignalEmitter.start
      1. reactor.core.subscriber.SignalEmitter.start(SignalEmitter.java:170)[reactor-core-2.5.0.M3.jar!/:na]
      1 frame
    11. reactor.core.publisher
      WorkQueueProcessor$QueueSubscriberLoop.run
      1. reactor.core.publisher.FluxYieldingEmitter.subscribe(FluxYieldingEmitter.java:43)[reactor-core-2.5.0.M3.jar!/:na]
      2. reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:153)[reactor-core-2.5.0.M3.jar!/:na]
      3. reactor.core.publisher.FluxFlatMap.subscribe(FluxFlatMap.java:170)[reactor-core-2.5.0.M3.jar!/:na]
      4. reactor.core.publisher.FluxSubscribeOn$SourceSubscribeTask.run(FluxSubscribeOn.java:363)[reactor-core-2.5.0.M3.jar!/:na]
      5. reactor.core.publisher.Computations$ProcessorWorker.onNext(Computations.java:919)[reactor-core-2.5.0.M3.jar!/:na]
      6. reactor.core.publisher.Computations$ProcessorWorker.onNext(Computations.java:883)[reactor-core-2.5.0.M3.jar!/:na]
      7. reactor.core.publisher.WorkQueueProcessor$QueueSubscriberLoop.run(WorkQueueProcessor.java:842)[reactor-core-2.5.0.M3.jar!/:na]
      7 frames
    12. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
      3 frames