java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.getContainingClass()

Talend Version          6.2.1

Summary

 Route fails to run due to NoSuchMethodError
Additional Versions  
Product  
Component  
Problem Description The following exception is thrown when running a route from Studio and the route contains a combination of cJMS and cFile/cFTP or a combination of cMQConnectionFactory and a cTalendJob components:

Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.MethodParameter.getContainingClass()Ljava/lang/Class;
at org.springframework.beans.factory.config.DependencyDescriptor.<init>(DependencyDescriptor.java:91)
at org.springframework.beans.factory.config.DependencyDescriptor.<init>(DependencyDescriptor.java:77)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1137)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:342)
at org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
at org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:87)
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:401)
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:388)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:560)
at org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:363)
Problem root cause  Due to the order of the jars (when constructing the classpath). Specifically when "spring-core-3.2.14.RELEASE.jar" is listed before "activemq-all-5.13.3.jar".
See Jira link below for further details.
Solution or Workaround  Will be fixed in versions: 6.2.2, 6.4.1, 6.3.2.
These versions will be shipped with spring-core jar of a recent version 4.3.4, so that it can co-exists with activemq-all-5.13.3.jar.
JIRA ticket number  https://jira.talendforge.org/browse/TESB-18147
Version History
Revision #:
1 of 1
Last update:
‎05-18-2017 09:34 PM
Updated by:
 
Labels (1)
Contributors