SEC-1885: Adding <debug/> causes NoSuchMethodException when FilterChainProxy's relies on beans that have Autowired Constructors #2113

spring-issuemaster opened this Issue Jan 4, 2012 · 2 comments


None yet

2 participants


Rob Winch (Migrated from SEC-1885) said:

An example would be if a configuration used and a custom AuthenticationProvider or UserDetailsService which had an Autowired constructor one might get an exception similar to NoSuchMethodException MyCustomAuthenticationProvider.()


Rob Winch said:

This was happening because SecurityDebugBeanFactoryPostProcessor looked up the FilterChainProxy from the ApplicationContext which attempted to resolve all of the FilterChainProxy's dependent beans. This occurred before the AutowiredAnnotationBeanPostProcessor was registered causing the Exception. The SecurityDebugBeanFactoryPostProcessor now only interacts with BeanDefinition's to prevent this from happening


ohad redlich said:

thanks rob !

@spring-issuemaster spring-issuemaster added this to the 3.1.1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment