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.

Spring JIRA | Tai Truong | 8 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

    Defining an endpoint's method in SI like this: <service-activator id="initAdapterClassServiceActivator" input-channel="requestChannel" ref="csvToAdaptersTranslator" method="initAdapterClass"/> In this case the endpoint's method initAdapterClass() is overridden and causes the following exception ("More than one method matches payload type..."): 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) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    Spring JIRA | 8 years ago | Tai Truong
    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.
  2. 0

    Defining an endpoint's method in SI like this: <service-activator id="initAdapterClassServiceActivator" input-channel="requestChannel" ref="csvToAdaptersTranslator" method="initAdapterClass"/> In this case the endpoint's method initAdapterClass() is overridden and causes the following exception ("More than one method matches payload type..."): 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) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    Spring JIRA | 8 years ago | Tai Truong
    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.
  3. 0

    java.lang.VerifyError,runtime exception,can anyone explain when or why get this runtime exception

    Coderanch | 8 years ago | Frank Jacobsen
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.transport.http.CommonsHttpMessageSender#2cac2cac' defined in class path resource [soalogservice/com.trygvesta.jee.prof.logging.applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.ws.transport.http.CommonsHttpMessageSender]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org/apache/commons/httpclient/HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Hibernate Mapping Issue

    Stack Overflow | 3 years ago | Diode
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [database/hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: org.e.models.Annotation
  6. 0

    Getting error in spring RMI

    Stack Overflow | 4 years ago | user1906154
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter#0' defined in file [D:\Pos2Workspace\ztestRmi\src\SpringContainer.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'serviceInterface'; nested exception is java.lang.IllegalArgumentException: Cannot find class [EasyServer]. Root cause: java.lang.ClassNotFoundException: EasyServer

    25 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. 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()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
      2. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
      3. org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)
      4. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
      8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      8 frames