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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Atlassian JIRA by Alexey Efimov, 1 year ago
An Authentication object was not found in the SecurityContext
via Atlassian JIRA by Alexey Efimov, 1 year ago
An Authentication object was not found in the SecurityContext
via atlassian.com by Unknown author, 2 years ago
An Authentication object was not found in the SecurityContext
via Stack Overflow by yqzhan
, 3 months ago
An Authentication object was not found in the SecurityContext
via GitHub by virtualdogbert
, 1 year ago
An Authentication object was not found in the SecurityContext
via Stack Overflow by valepu
, 2 years ago
An Authentication object was not found in the SecurityContext
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
at com.sun.proxy.$Proxy171.getById(Unknown Source)
at com.sun.proxy.$Proxy245.getById(Unknown Source)
at com.sun.proxy.$Proxy853.getById(Unknown Source)
at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestSupplier.get(DefaultPullRequestSupplier.java:55)
at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper$AbstractOperation.perform(DefaultPullRequestRefHelper.java:159)
at com.atlassian.stash.util.concurrent.MappedReentrantLock.withLock(MappedReentrantLock.java:74)
at com.atlassian.stash.util.concurrent.ReentrantPullRequestLock.withLock(ReentrantPullRequestLock.java:35)
at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.withLock(DefaultPullRequestRefHelper.java:140)
at com.atlassian.stash.internal.scm.git.pull.DefaultPullRequestRefHelper.resolveEffectiveDiff(DefaultPullRequestRefHelper.java:65)
at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.resolveEffectiveDiff(DefaultGitPullRequestCommandFactory.java:280)
at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.access$100(DefaultGitPullRequestCommandFactory.java:52)
at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:190)
at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$2.call(DefaultGitPullRequestCommandFactory.java:186)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftCalculator.calculate(DriftCommentUpdateProcessor.java:244)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:355)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation$1.doInTransaction(DriftCommentUpdateProcessor.java:350)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:350)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftOperation.perform(DriftCommentUpdateProcessor.java:321)
at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:77)
at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:51)
at com.atlassian.stash.internal.concurrent.DefaultLockService.doWithLock(DefaultLockService.java:44)
at com.sun.proxy.$Proxy162.doWithLock(Unknown Source)
at com.atlassian.stash.internal.pull.comment.drift.DriftCommentUpdateProcessor$CommentDriftBoostrapper.run(DriftCommentUpdateProcessor.java:301)
at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 10 months ago
2 times, 11 months ago
9 times, 1 year ago
122 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.