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

Stack Overflow | Diego Cairone | 4 months ago
  1. 0

    Getting Spring Security Context with null authentication

    Stack Overflow | 4 months ago | Diego Cairone
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
  2. 0

    Missing Authentication object in SecurityContext when using @Secured annotation

    GitHub | 2 years ago | LarsMilland
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
  3. 0

    Spring From the Trenches: Invoking a Secured Method From a Scheduled Job

    petrikainulainen.net | 6 months 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

    An Authentication object was not found in the SecurityContext in a REST Server

    Stack Overflow | 3 years ago | Jorge
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An
  6. 0

    What causes this AuthenticationCredentialsNotFoundException?

    Stack Overflow | 1 year ago | Stefan Falk
    org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext

  1. serious2monkeys 2 times, last 4 months ago
  2. serious2monkeys 9 times, last 2 months ago
  3. jedcua 122 times, last 4 months ago
  4. tfr 1 times, last 5 months ago
2 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.security.authentication.AuthenticationCredentialsNotFoundException

    An Authentication object was not found in the SecurityContext

    at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound()
  2. spring-security-core
    MethodSecurityInterceptor.invoke
    1. org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:378)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    2. org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:222)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    3. org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    3 frames
  3. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    2 frames
  4. com.sun.proxy
    $Proxy100.getStrategy
    1. com.sun.proxy.$Proxy100.getStrategy(Unknown Source)[na:na]
    1 frame
  5. com.sdl.odata
    ODataQueryProcessorActor$$anonfun$receive$1.applyOrElse
    1. com.sdl.odata.processor.datasource.factory.DataSourceFactoryImpl.getStrategy(DataSourceFactoryImpl.java:75)[odata_processor-2.2-SNAPSHOT.jar:2.2-SNAPSHOT]
    2. com.sdl.odata.processor.ODataQueryProcessorImpl.query(ODataQueryProcessorImpl.java:85)[odata_processor-2.2-SNAPSHOT.jar:2.2-SNAPSHOT]
    3. com.sdl.odata.service.actor.ODataQueryProcessorActor$$anonfun$receive$1.applyOrElse(ODataQueryProcessorActor.scala:38)[odata_service-2.2-SNAPSHOT.jar:2.2-SNAPSHOT]
    3 frames
  6. Akka Actor
    Actor$class.aroundReceive
    1. akka.actor.Actor$class.aroundReceive(Actor.scala:480)[akka-actor_2.11-2.4.1.jar:na]
    1 frame
  7. com.sdl.odata
    ODataQueryProcessorActor.aroundReceive
    1. com.sdl.odata.service.actor.ODataQueryProcessorActor.aroundReceive(ODataQueryProcessorActor.scala:29)[odata_service-2.2-SNAPSHOT.jar:2.2-SNAPSHOT]
    1 frame
  8. Akka Actor
    Mailbox.run
    1. akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)[akka-actor_2.11-2.4.1.jar:na]
    2. akka.actor.ActorCell.invoke(ActorCell.scala:495)[akka-actor_2.11-2.4.1.jar:na]
    3. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)[akka-actor_2.11-2.4.1.jar:na]
    4. akka.dispatch.Mailbox.run(Mailbox.scala:224)[akka-actor_2.11-2.4.1.jar:na]
    4 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_74]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_74]
    3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_74]
    3 frames