A job with tsalesforcexxx components fails with the error 'java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType'

Problem Description

A job with tSalesforcexxx components fails with the following error message:

 

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType;
at org.talend.daikon.di.DiOutgoingSchemaEnforcer.transformValue(DiOutgoingSchemaEnforcer.java:206)
at org.talend.daikon.di.DiOutgoingSchemaEnforcer.get(DiOutgoingSchemaEnforcer.java:189)
at b2b_ingestion.salesforce_con_test_0_1.salesforce_con_test.tSalesforceInput_1Process(salesforce_con_test.java:1110)
at b2b_ingestion.salesforce_con_test_0_1.salesforce_con_test.tSalesforceConnection_1Process(salesforce_con_test.java:503)
at b2b_ingestion.salesforce_con_test_0_1.salesforce_con_test.runJobInTOS(salesforce_con_test.java:1600)
at b2b_ingestion.salesforce_con_test_0_1.salesforce_con_test.main(salesforce_con_test.java:1426)

 

Root Cause

The Talend_Studio_6.5.1_Installation\configuration\.m2\repository\org\apache\avro\avro\1.8.1\avro-1.8.1.jar file is corrupted.

 

Solution

To fix the issue, replace the avro-1.8.1.jar file in the directory above with a new avro 1.8.1 jar file, which you can download from https://mvnrepository.com/artifact/org.apache.avro/avro/1.8.1.

Version history
Revision #:
6 of 6
Last update:
‎09-29-2018 12:14 AM
Updated by: