org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0' while setting constructor argument with key [9]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [hasAnyRole('ROLE_USER','DENY_OAUTH'), hasRole('IS_AUTHENTICATED_ANONYMOUSLY'), hasAnyRole('ROLE_CLIENT','SCOPE_TRUST'), hasAnyRole('ROLE_USER','SCOPE_TRUST'), hasRole(ROLE_USER), hasAnyRole('IS_AUTHENTICATED_ANONYMOUSLY','DENY_OAUTH'), hasAnyRole('ROLE_USER','SCOPE_READ'), hasAnyRole('ROLE_USER','SCOPE_READ')]

Spring JIRA | Bjorn Harvold | 5 years ago
  1. 0
    samebug tip
    Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.
  2. 0
    samebug tip
    Your entity is not a valid Entity class.
  3. 0
    samebug tip
    Upgrade to Confluence 3.5.5 or install the patch as explained in the details.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml
    via spring.io
  6. 0

    Using expressions for <security:http fails in latest oauth2 codebase - Spring Forum

    spring.io | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0' while setting constructor argument with key [9]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [hasAnyRole('ROLE_USER','DENY_OAUTH'), hasRole('IS_AUTHENTICATED_ANONYMOUSLY'), hasAnyRole('ROLE_CLIENT','SCOPE_TRUST'), hasAnyRole('ROLE_USER','SCOPE_TRUST'), hasRole(ROLE_USER), hasAnyRole('IS_AUTHENTICATED_ANONYMOUSLY','DENY_OAUTH'), hasAnyRole('ROLE_USER','SCOPE_READ'), hasAnyRole('ROLE_USER','SCOPE_READ')]

  1. esaar 2 times, last 6 months ago
  2. abrazeneb 34 times, last 5 months ago
  3. Piz 9 times, last 6 months ago
  4. haerick 4 times, last 7 months ago
  5. Andreas Häber 8 times, last 8 months ago
3 more registered users
7 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.beans.factory.BeanCreationException

    Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0' while setting constructor argument with key [9]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [hasAnyRole('ROLE_USER','DENY_OAUTH'), hasRole('IS_AUTHENTICATED_ANONYMOUSLY'), hasAnyRole('ROLE_CLIENT','SCOPE_TRUST'), hasAnyRole('ROLE_USER','SCOPE_TRUST'), hasRole(ROLE_USER), hasAnyRole('IS_AUTHENTICATED_ANONYMOUSLY','DENY_OAUTH'), hasAnyRole('ROLE_USER','SCOPE_READ'), hasAnyRole('ROLE_USER','SCOPE_READ')]

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference()
  2. Spring Beans
    BeanDefinitionValueResolver.resolveReference
    1. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    1 frame