java.lang.IllegalArgumentException: Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0

Spring JIRA | Luke Taylor | 9 years ago
  1. 0

    Straightforward problem. Post processor attempts to inject the remember-me services bean into the BasicProcessingFilter bean (which doesn't exist) > Here's my config: > > <http> > <intercept-url pattern="/messageList.htm" access="ROLE_USER,ROLE_GUEST" /> > <intercept-url pattern="/messagePost.htm" access="ROLE_USER" /> > <form-login login-page="/login.jsp" default-target-url="/messageList.htm" > authentication-failure-url="/login.jsp?error=true" /> > <logout logout-success-url="/login.jsp" /> > <anonymous username="guest" granted-authority="ROLE_GUEST" /> > <remember-me /> > </http> > > Here's the stack trace: > > Mar 31, 2008 10:01:15 PM org.springframework.security.config.HttpSecurityConfigPostProcessor injectRememberMeServicesIntoFiltersRequiringIt > INFO: Using RememberMeServices org.springframework.security.ui.rememberme.TokenBasedRememberMeServices@1f1235b with filter class org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=-2147481948; ] > Mar 31, 2008 10:01:15 PM org.springframework.web.context.ContextLoader initWebApplicationContext > SEVERE: Context initialization failed > java.lang.IllegalArgumentException: Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0 > at org.springframework.util.Assert.isTrue(Assert.java:65) > at org.springframework.security.config.HttpSecurityConfigPostProcessor.getBeanOfType(HttpSecurityConfigPostProcessor.java:235) > at org.springframework.security.config.HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt(HttpSecurityConfigPostProcessor.java:121)

    Spring JIRA | 9 years ago | Luke Taylor
    java.lang.IllegalArgumentException: Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0
  2. 0

    Straightforward problem. Post processor attempts to inject the remember-me services bean into the BasicProcessingFilter bean (which doesn't exist) > Here's my config: > > <http> > <intercept-url pattern="/messageList.htm" access="ROLE_USER,ROLE_GUEST" /> > <intercept-url pattern="/messagePost.htm" access="ROLE_USER" /> > <form-login login-page="/login.jsp" default-target-url="/messageList.htm" > authentication-failure-url="/login.jsp?error=true" /> > <logout logout-success-url="/login.jsp" /> > <anonymous username="guest" granted-authority="ROLE_GUEST" /> > <remember-me /> > </http> > > Here's the stack trace: > > Mar 31, 2008 10:01:15 PM org.springframework.security.config.HttpSecurityConfigPostProcessor injectRememberMeServicesIntoFiltersRequiringIt > INFO: Using RememberMeServices org.springframework.security.ui.rememberme.TokenBasedRememberMeServices@1f1235b with filter class org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=-2147481948; ] > Mar 31, 2008 10:01:15 PM org.springframework.web.context.ContextLoader initWebApplicationContext > SEVERE: Context initialization failed > java.lang.IllegalArgumentException: Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0 > at org.springframework.util.Assert.isTrue(Assert.java:65) > at org.springframework.security.config.HttpSecurityConfigPostProcessor.getBeanOfType(HttpSecurityConfigPostProcessor.java:235) > at org.springframework.security.config.HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt(HttpSecurityConfigPostProcessor.java:121)

    Spring JIRA | 9 years ago | Luke Taylor
    java.lang.IllegalArgumentException: Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0
  3. 0

    Application startup failed with org.hibernate:hibernate-search-orm.XYZ on class path

    GitHub | 2 years ago | dirkrathje
    java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue of pagination in Spring Data JPA

    Stack Overflow | 5 years ago | Tom
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter!
  6. 0

    SubProtocolWebSocketHandler - No handlers

    Stack Overflow | 2 years ago
    org.springframework.web.context.ContextLoaderListener: org.springframework.context.ApplicationContextException: Failed to start bean 'subProtocolWebSocketHandler'; nested exception is java.lang.IllegalArgumentException: No handlers

  1. kjhdofjosvs 1 times, last 3 weeks ago
  2. j.kienzle 1 times, last 1 month ago
  3. Luka 2 times, last 2 months ago
  4. andyglick 1 times, last 3 months ago
  5. qavid 2 times, last 4 months ago
3 more registered users
29 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. java.lang.IllegalArgumentException

    Required a single bean of type class org.springframework.security.ui.basicauth.BasicProcessingFilter but found 0

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:65)
    1 frame
  3. spring-security-config
    HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt
    1. org.springframework.security.config.HttpSecurityConfigPostProcessor.getBeanOfType(HttpSecurityConfigPostProcessor.java:235)
    2. org.springframework.security.config.HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt(HttpSecurityConfigPostProcessor.java:121)
    2 frames