java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Luke Taylor,
  • 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)
    via by Luke Taylor,
  • Issue of pagination in Spring Data JPA
    via Stack Overflow by Tom
    ,
  • spring open jpa db2 error
    via Stack Overflow by Fryder
    ,
  • SubProtocolWebSocketHandler - No handlers
    via by Unknown author,
    • 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)

    Users with the same issue

    j.kienzle
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    47 more bugmates