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
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

    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 | 3 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

    Unit tests using redisTemplate fail

    GitHub | 3 years ago | wxlund
    java.lang.IllegalArgumentException: template not initialized; call afterPropertiesSet() before using it

  1. SteVio1989 2 times, last 5 days ago
  2. Andreas Häber 1 times, last 6 days ago
  3. tomthomas 4 times, last 21 hours ago
  4. Dunmer 3 times, last 4 weeks ago
  5. Axelo 1 times, last 4 weeks ago
10 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