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

Stack Overflow | Luca | 5 months ago
  1. 0

    Spring Cloud Dataflow on Bluemix - Ticktock example error

    Stack Overflow | 5 months ago | Luca
    org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.
  2. 0

    OAuth2AccessDeniedException

    GitHub | 10 months ago | arnaudruffin
    org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.
  3. 0

    OAuth2RestTemplate and token uri protected by basic auth

    Stack Overflow | 3 weeks ago | Smajl
    org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring OAuth2: Could not obtain transaction-synchronized Session for current thread

    Stack Overflow | 9 months ago | user2035039
    org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
  6. 0

    Cannot connect to Bluemix CF

    GitHub | 5 months ago | lucaverderame
    org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

  1. Tahir 1 times, last 1 month ago
10 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

    401 Unauthorized

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError()
  2. Spring
    DefaultResponseErrorHandler.handleError
    1. org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
    1 frame
  3. OAuth2 for Spring Security
    OAuth2AccessTokenSupport$AccessTokenErrorHandler.handleError
    1. org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport$AccessTokenErrorHandler.handleError(OAuth2AccessTokenSupport.java:244)[spring-security-oauth2-2.0.9.RELEASE.jar!/:na]
    1 frame
  4. Spring
    RestTemplate.execute
    1. org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
    2. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:597)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
    3. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:565)[spring-web-4.2.5.RELEASE.jar!/:4.2.5.RELEASE]
    3 frames
  5. OAuth2 for Spring Security
    OAuth2RestTemplate.createRequest
    1. org.springframework.security.oauth2.client.token.OAuth2AccessTokenSupport.retrieveToken(OAuth2AccessTokenSupport.java:137)[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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. reactor.core.util
    DeferredSubscription.set
    1. reactor.core.util.DeferredSubscription.set(DeferredSubscription.java:71)[reactor-core-2.5.0.M3.jar!/:na]
    1 frame
  12. 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
  13. reactor.core.subscriber
    SignalEmitter.start
    1. reactor.core.subscriber.SignalEmitter.start(SignalEmitter.java:170)[reactor-core-2.5.0.M3.jar!/:na]
    1 frame
  14. 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
  15. 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