org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext

Atlassian JIRA | Alexey Efimov | 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

    {code} 2013-11-22 10:44:52,285 ERROR [drift:thread-1] c.a.s.i.p.c.d.DriftCommentUpdateProcessor Error calculating comment drift for pull request 15026 (1 attempts): old fromHash = 8dc7a601bf71c64ee8a13877179e84b5b5c23b13 old toHash = 5b386faa4c1ba3abda3aa4d773d87316b5c66dd8 new fromHash = 8dc7a601bf71c64ee8a13877179e84b5b5c23b13 new toHash = 18da2ada4838f738c270f640d2afe9d061b910cb org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) ~[spring-security-core-3.1.4.RELEASE.jar:3.1.4.RELEASE] at com.sun.proxy.$Proxy171.getById(Unknown Source) ~[na:na] at com.sun.proxy.$Proxy245.getById(Unknown Source) ~[na:na] at com.sun.proxy.$Proxy853.getById(Unknown Source) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestSupplier.get(DefaultPullRequestSupplier.java:55) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper$AbstractOperation.perform(DefaultPullRequestRefHelper.java:159) ~[na:na] at com.atlassian.stash.util.concurrent.MappedReentrantLock.withLock(MappedReentrantLock.java:74) ~[stash-util-2.9.2.jar:na] at com.atlassian.stash.util.concurrent.ReentrantPullRequestLock.withLock(ReentrantPullRequestLock.java:35) ~[stash-util-2.9.2.jar:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.withLock(DefaultPullRequestRefHelper.java:140) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.resolveEffectiveDiff(DefaultPullRequestRefHelper.java:65) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.resolveEffectiveDiff(DefaultGitPullRequestCommandFactory.java:280) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.access$100(DefaultGitPullRequestCommandFactory.java:52) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:190) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:186) ~[na:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftCalculator.calculate(DriftCommentUpdateProcessor.java:244) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:355) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:350) ~[stash-service-impl-2.9.2.jar:na] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) ~[spring-tx-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:350) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:321) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:77) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:51) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:44) [stash-service-impl-2.9.2.jar:na] at com.sun.proxy.$Proxy162.doWithLock(Unknown Source) [na:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftBoostrapper.run(DriftCommentUpdateProcessor.java:301) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69) [stash-platform-2.9.2.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_45] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_45] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45] ... 60 frames trimmed {code} *Your instance might not be able to start up due to these messages. Please upgrade your Stash version.*

    Atlassian JIRA | 3 years ago | Alexey Efimov
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
  2. 0

    {code} 2013-11-22 10:44:52,285 ERROR [drift:thread-1] c.a.s.i.p.c.d.DriftCommentUpdateProcessor Error calculating comment drift for pull request 15026 (1 attempts): old fromHash = 8dc7a601bf71c64ee8a13877179e84b5b5c23b13 old toHash = 5b386faa4c1ba3abda3aa4d773d87316b5c66dd8 new fromHash = 8dc7a601bf71c64ee8a13877179e84b5b5c23b13 new toHash = 18da2ada4838f738c270f640d2afe9d061b910cb org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) ~[spring-security-core-3.1.4.RELEASE.jar:3.1.4.RELEASE] at com.sun.proxy.$Proxy171.getById(Unknown Source) ~[na:na] at com.sun.proxy.$Proxy245.getById(Unknown Source) ~[na:na] at com.sun.proxy.$Proxy853.getById(Unknown Source) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestSupplier.get(DefaultPullRequestSupplier.java:55) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper$AbstractOperation.perform(DefaultPullRequestRefHelper.java:159) ~[na:na] at com.atlassian.stash.util.concurrent.MappedReentrantLock.withLock(MappedReentrantLock.java:74) ~[stash-util-2.9.2.jar:na] at com.atlassian.stash.util.concurrent.ReentrantPullRequestLock.withLock(ReentrantPullRequestLock.java:35) ~[stash-util-2.9.2.jar:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.withLock(DefaultPullRequestRefHelper.java:140) ~[na:na] at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.resolveEffectiveDiff(DefaultPullRequestRefHelper.java:65) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.resolveEffectiveDiff(DefaultGitPullRequestCommandFactory.java:280) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.access$100(DefaultGitPullRequestCommandFactory.java:52) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:190) ~[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:186) ~[na:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftCalculator.calculate(DriftCommentUpdateProcessor.java:244) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:355) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:350) ~[stash-service-impl-2.9.2.jar:na] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) ~[spring-tx-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:350) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:321) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:77) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:51) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:44) [stash-service-impl-2.9.2.jar:na] at com.sun.proxy.$Proxy162.doWithLock(Unknown Source) [na:na] at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftBoostrapper.run(DriftCommentUpdateProcessor.java:301) [stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69) [stash-platform-2.9.2.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_45] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_45] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45] ... 60 frames trimmed {code} *Your instance might not be able to start up due to these messages. Please upgrade your Stash version.*

    Atlassian JIRA | 3 years ago | Alexey Efimov
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
  3. 0

    [BSERV-4131] Error calculating comment drift on startup - Atlassian JIRA

    atlassian.com | 1 year ago
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bitbucket doesn't notify when a commit is pushed to remote when using `${EVERYTHING_URL}`

    GitHub | 9 months ago | mtakaki
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext

    1 unregistered visitors

    Root Cause Analysis

    1. org.springframework.security.authentication.AuthenticationCredentialsNotFoundException

      An Authentication object was not found in the SecurityContext

      at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound()
    2. spring-security-core
      AbstractSecurityInterceptor.credentialsNotFound
      1. org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339)[spring-security-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
      1 frame
    3. com.sun.proxy
      $Proxy853.getById
      1. com.sun.proxy.$Proxy171.getById(Unknown Source)[na:na]
      2. com.sun.proxy.$Proxy245.getById(Unknown Source)[na:na]
      3. com.sun.proxy.$Proxy853.getById(Unknown Source)[na:na]
      3 frames
    4. com.atlassian.stash
      DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction
      1. com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestSupplier.get(DefaultPullRequestSupplier.java:55)[na:na]
      2. com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper$AbstractOperation.perform(DefaultPullRequestRefHelper.java:159)[na:na]
      3. com.atlassian.stash.util.concurrent.MappedReentrantLock.withLock(MappedReentrantLock.java:74)[stash-util-2.9.2.jar:na]
      4. com.atlassian.stash.util.concurrent.ReentrantPullRequestLock.withLock(ReentrantPullRequestLock.java:35)[stash-util-2.9.2.jar:na]
      5. com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.withLock(DefaultPullRequestRefHelper.java:140)[na:na]
      6. com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.resolveEffectiveDiff(DefaultPullRequestRefHelper.java:65)[na:na]
      7. com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.resolveEffectiveDiff(DefaultGitPullRequestCommandFactory.java:280)[na:na]
      8. com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.access$100(DefaultGitPullRequestCommandFactory.java:52)[na:na]
      9. com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:190)[na:na]
      10. com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:186)[na:na]
      11. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftCalculator.calculate(DriftCommentUpdateProcessor.java:244)[stash-service-impl-2.9.2.jar:na]
      12. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:355)[stash-service-impl-2.9.2.jar:na]
      13. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:350)[stash-service-impl-2.9.2.jar:na]
      13 frames
    5. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[spring-tx-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      1 frame
    6. com.atlassian.stash
      DefaultLockService.doWithLock
      1. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:350)[stash-service-impl-2.9.2.jar:na]
      2. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:321)[stash-service-impl-2.9.2.jar:na]
      3. com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:77)[stash-service-impl-2.9.2.jar:na]
      4. com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:51)[stash-service-impl-2.9.2.jar:na]
      5. com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:44)[stash-service-impl-2.9.2.jar:na]
      5 frames
    7. com.sun.proxy
      $Proxy162.doWithLock
      1. com.sun.proxy.$Proxy162.doWithLock(Unknown Source)[na:na]
      1 frame
    8. com.atlassian.stash
      StateTransferringExecutor$StateTransferringRunnable.run
      1. com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftBoostrapper.run(DriftCommentUpdateProcessor.java:301)[stash-service-impl-2.9.2.jar:na]
      2. com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69)[stash-platform-2.9.2.jar:na]
      2 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_45]
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_45]
      4. java.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
      4 frames