'java.lang.NoSuchMethodError' when adding cMQConnectionFactory to a route

Problem Description

When designing routes in Studio, adding the cMQConnectionFactory component when other components, such as cHTTP exist in the same route, or when calling other beans, such as ZipAggregationStrategy, it fails with one of the following error messages:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.camel.util.IntrospectionSupport.extractStringProperties(Ljava/util/Map;)Ljava/util/Map;

or

java.lang.NoSuchMethodError - org.apache.camel.component.file.FileConsumer.asGenericFile(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;Z)Lorg/apache/camel/component/file/GenericFile

However, the problem doesn't occur when deploying and running the route from Runtime.

 

Root Cause

The cMQConnectionFactory component uses the activemq-all-5.14.1.jar file with camel-core version 2.16.3 embedded.

 

Solution

Upgrade to Talend 7.0 or higher. However the issue is permanently fixed in Talend versions 6.3.2, 6.4.2, and 6.5.1.

Version history
Revision #:
6 of 6
Last update:
‎08-09-2019 09:14 AM
Updated by: