org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initAdapterClassServiceActivator': Cannot resolve reference to bean 'org.springframework.integration.handler.ServiceActivatingHandler#2' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.handler.ServiceActivatingHandler#2': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.handler.ServiceActivatingHandler]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: More than one method matches payload type [interface com.qnamic.plancom.importer.IPlanComImportConfiguration]. Consider using annotations or providing a method name.

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

Samebug tips

,
via Stack Overflow by Saravanan Sivaji

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

,
via spring.io by Unknown author

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

Solutions on the web

via Spring JIRA by Tai Truong, 1 year ago
instantiate bean class [org.springframework.integration.handler.ServiceActivatingHandler]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: More than one method matches payload type [interface com.qnamic.plancom.importer.IPlanComImportConfiguration]. Consider using annotations or providing a method name.
via Spring JIRA by Tai Truong, 1 year ago
instantiate bean class [org.springframework.integration.handler.ServiceActivatingHandler]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: More than one method matches payload type [interface com.qnamic.plancom.importer.IPlanComImportConfiguration]. Consider using annotations or providing a method name.
via Stack Overflow by Aakash
, 2 years ago
Error creating bean with name 'acesFormFactory' defined in class path resource [/META-INF/aces-beans.xml]: Cannot resolve reference to bean 'promotionMarshaller' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'promotionMarshaller' is defined
via Stack Overflow by Slaader
, 2 years ago
Error creating bean with name 'macroIconManager' Defined in class path resource [services / pluginServiceContext.xml]: Can not resolve reference to bean 'httpRetrievalService' while setting constructor argument; nested exception is
via Stack Overflow by Ben
, 2 years ago
Error creating bean with name 'mongoTemplate' defined in class path resource [root-context.xml]: Cannot resolve reference to bean 'mongoDbFactory' while setting constructor argument; nested exception is
via Stack Overflow by Kramer
, 11 months ago
Error creating bean with name 'reportInterfaceEndpoint': Cannot resolve reference to bean 'reportService' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'reportService' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initAdapterClassServiceActivator': Cannot resolve reference to bean 'org.springframework.integration.handler.ServiceActivatingHandler#2' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.handler.ServiceActivatingHandler#2': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.handler.ServiceActivatingHandler]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: More than one method matches payload type [interface com.qnamic.plancom.importer.IPlanComImportConfiguration]. Consider using annotations or providing a method name.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

Users with the same issue

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, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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