org.springframework.security.access.AccessDeniedException: Access is denied

Stack Overflow | xenoterracide | 7 months 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

    Spring OAuth2 security and ResourceServer configuration

    Stack Overflow | 5 months ago | alexanoid
    org.springframework.security.access.AccessDeniedException: Access is denied
  2. 0

    Spring security shows access denied for valid user

    Stack Overflow | 5 months ago | Akka Jaworek
    org.springframework.security.access.AccessDeniedException: Access is denied
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 5072#179443501

    GitHub | 1 year ago | quintonm
    org.springframework.security.access.AccessDeniedException: Access is denied
  5. 0

    Requirement VaadinAccessDeniedHandler

    GitHub | 2 years ago | GJRTimmer
    org.springframework.security.access.AccessDeniedException: Access is denied
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.access.AccessDeniedException

    Access is denied

    at org.springframework.security.access.vote.AffirmativeBased.decide()
  2. spring-security-core
    AbstractSecurityInterceptor.beforeInvocation
    1. org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83)[spring-security-core-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2. org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:232)[spring-security-core-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2 frames
  3. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:123)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    4. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    5. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    6. org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    7. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    8. org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    9. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    10. org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    11. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    12. org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    13. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    13 frames
  4. OAuth2 for Spring Security
    OAuth2AuthenticationProcessingFilter.doFilter
    1. org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176)[spring-security-oauth2-2.0.10.RELEASE.jar:na]
    1 frame
  5. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2. org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3 frames
  6. org.springframework.security
    HeaderWriterFilter.doFilterInternal
    1. org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    1 frame
  7. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  8. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3 frames
  9. org.springframework.security
    WebAsyncManagerIntegrationFilter.doFilterInternal
    1. org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    1 frame
  10. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  11. Spring Security
    FilterChainProxy.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    2. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)[spring-security-web-4.0.4.RELEASE.jar:4.0.4.RELEASE]
    3 frames
  12. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  13. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2 frames
  14. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2 frames
  16. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  17. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2 frames
  18. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  19. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2 frames
  20. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  21. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2 frames
  22. Spring Boot Actuator
    MetricsFilter.doFilterInternal
    1. org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame
  23. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  24. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-embed-core-8.0.36.jar:8.0.36]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)[tomcat-embed-core-8.0.36.jar:8.0.36]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[tomcat-embed-core-8.0.36.jar:8.0.36]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[tomcat-embed-core-8.0.36.jar:8.0.36]
    6. org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676)[tomcat-embed-core-8.0.36.jar:8.0.36]
    7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)[tomcat-embed-core-8.0.36.jar:8.0.36]
    8. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.0.36.jar:8.0.36]
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-embed-core-8.0.36.jar:8.0.36]
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)[tomcat-embed-core-8.0.36.jar:8.0.36]
    10 frames
  25. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)[tomcat-embed-core-8.0.36.jar:8.0.36]
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)[tomcat-embed-core-8.0.36.jar:8.0.36]
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)[tomcat-embed-core-8.0.36.jar:8.0.36]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)[tomcat-embed-core-8.0.36.jar:8.0.36]
    4 frames
  26. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_92]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_92]
    2 frames
  27. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.0.36.jar:8.0.36]
    1 frame
  28. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_92]
    1 frame