org.springframework.web.client.HttpClientErrorException

401 Unauthorized

Samebug tips1

Check if your path is correct, if it's correct already you have to register your path to the mapping configuration.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web323

  • via GitHub by smsuresh
    ,
  • via GitHub by zenglincui
    ,
  • Stack trace

    • org.springframework.web.client.HttpClientErrorException: 401 Unauthorized at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:570)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:545)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:466)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at com.capitalone.dashboard.collector.DefaultBitbucketServerClient.makeRestCall(DefaultBitbucketServerClient.java:227)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.DefaultBitbucketServerClient.getCommits(DefaultBitbucketServerClient.java:88)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.GitCollectorTask.collect(GitCollectorTask.java:132)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:63)[core-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_91] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_91] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    batwalrus76batwalrus76
    7 times, last one
    johnxflyjohnxfly
    72 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    121 more bugmates