org.springframework.security.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityC
2011-05-24 12:50
801 查看
Reference:
You can check your customized filterSecurityInterceptor, and change the custom-filter position.
1.5. I get an exception with the message "An Authentication object was not found in the SecurityContext". What's wrong? This is a another debug level message which occurs the first time an anonymous user attempts to access a protected resource, but when you do not have an AnonymousAuthenticationFilter in your filter chain configuration. DEBUG [ExceptionTranslationFilter] - Authentication exception occurred; redirecting to authentication entry point org.springframework.security.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:342) at org.springframework.security.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:254) It is normal and shouldn't be anything to worry about.
You can check your customized filterSecurityInterceptor, and change the custom-filter position.
相关文章推荐
- org.springframework.core.ConstantException: Field 'SYSTEM_PROPERTIES_MODE_ENVIRONMENT' not found in
- org.springframework.dao.DuplicateKeyException: a different object with the same identifier value was
- System.Security.SecurityException The source was not found, but some or all event logs could not be searched.Inaccessible logs Security.
- 【spring-security】nested exception is java.lang.ClassNotFoundException: org.springframework.security.
- org.springframework.dao.DuplicateKeyException: a different object with the same identifier value was
- Webdriver如何解决页面元素过期:org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up
- org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the CDATA sectio
- org.springframework.dao.InvalidDataAccessApiUsageException:object references an unsaved transient in
- org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the CDATA sectio
- maven项目报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderL
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- org.springframework.data.mapping.model.MappingException: No id property found for object of type
- SSH+ maven整合:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 解决问题 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener