org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.filter.MethodInvokingSelector#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.filter.MethodInvokingSelector]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Nick Padgett, 1 year ago
[org.springframework.integration.filter.MethodInvokingSelector]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].
via Spring JIRA by Nick Padgett, 1 year ago
[org.springframework.integration.filter.MethodInvokingSelector]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].
via Stack Overflow by user3548196
, 2 years ago
Error creating bean with name 'org.springframework.integration.sftp.gateway.SftpOutboundGateway#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
via Stack Overflow by Ganesh
, 1 year ago
Error creating bean with name 'mongoTemplate' defined in class path resource [Beans.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate
via Spring JIRA by Harry Clark, 1 year ago
Error creating bean with name 'org.springframework.security.apacheDirectoryServerContainer': Resolution of declared constructors on bean Class [org.springframework.security.ldap.server.ApacheDSContainer] from ClassLoader [sun.misc.Launcher$AppClassLoader@a90653] failed; nested exception is java.lang.NoClassDefFoundError: org/apache/directory/shared/ldap/name/LdapDN
via Spring JIRA by Harry Clark, 1 year ago
Error creating bean with name 'org.springframework.security.apacheDirectoryServerContainer': Resolution of declared constructors on bean Class [org.springframework.security.ldap.server.ApacheDSContainer] from ClassLoader [sun.misc.Launcher$AppClassLoader@a90653] failed; nested exception is java.lang.NoClassDefFoundError: org/apache/directory/shared/ldap/name/LdapDN
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.filter.MethodInvokingSelector#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.filter.MethodInvokingSelector]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].
at org.springframework.integration.handler.MessageMappingMethodInvoker.createResolverForMethodName(MessageMappingMethodInvoker.java:220)
at org.springframework.integration.handler.MessageMappingMethodInvoker.(MessageMappingMethodInvoker.java:91)
at org.springframework.integration.handler.MessageMappingMethodInvoker.(MessageMappingMethodInvoker.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:128)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:277)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:977)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:449)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:716)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at com.playonsports.automator.Main.main(Main.java:14)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
18 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.