org.springframework.security.authentication.AuthenticationCredentialsNotFoundException

An Authentication object was not found in the SecurityContext

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web57

Stack trace

  • org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:378)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE] at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:222)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE] at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)[spring-security-core-4.0.3.RELEASE.jar:4.0.3.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.5.RELEASE.jar:4.2.5.RELEASE] at com.sun.proxy.$Proxy100.getStrategy(Unknown Source)[na:na] at com.sdl.odata.processor.datasource.factory.DataSourceFactoryImpl.getStrategy(DataSourceFactoryImpl.java:75)[odata_processor-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at com.sdl.odata.processor.ODataQueryProcessorImpl.query(ODataQueryProcessorImpl.java:85)[odata_processor-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at com.sdl.odata.service.actor.ODataQueryProcessorActor$$anonfun$receive$1.applyOrElse(ODataQueryProcessorActor.scala:38)[odata_service-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at akka.actor.Actor$class.aroundReceive(Actor.scala:480)[akka-actor_2.11-2.4.1.jar:na] at com.sdl.odata.service.actor.ODataQueryProcessorActor.aroundReceive(ODataQueryProcessorActor.scala:29)[odata_service-2.2-SNAPSHOT.jar:2.2-SNAPSHOT] at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)[akka-actor_2.11-2.4.1.jar:na] at akka.actor.ActorCell.invoke(ActorCell.scala:495)[akka-actor_2.11-2.4.1.jar:na] at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)[akka-actor_2.11-2.4.1.jar:na] at akka.dispatch.Mailbox.run(Mailbox.scala:224)[akka-actor_2.11-2.4.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_74] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_74]

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

SteVio1989SteVio1989
Once,
serious2monkeysserious2monkeys
6 times, last one
tfrtfr
Once,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
6 more bugmates