Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello I am trying to use tHMap to convert incoming data from Salesforce component to JSON stream.
When I use RowGenerator it's working just fine:
The same exact mapping when I use with a Salesforce component, it fails with the following error:
Error:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType;
at org.talend.codegen.enforcer.OutgoingSchemaEnforcer.transformValue(OutgoingSchemaEnforcer.java:209)
at org.talend.codegen.enforcer.OutgoingSchemaEnforcer.get(OutgoingSchemaEnforcer.java:192)
at eim_middleware.jb_thmap_v3_0_1.jb_thmap_v3.tSalesforceInput_1Process(jb_thmap_v3.java:1344)
at eim_middleware.jb_thmap_v3_0_1.jb_thmap_v3.runJobInTOS(jb_thmap_v3.java:2829)
at eim_middleware.jb_thmap_v3_0_1.jb_thmap_v3.main(jb_thmap_v3.java:2272)
I have other pages where they asked to replace the avro jar with the latest and I have done but still no luck. Any help please ?
Thanks.
Hello,
This issue should be from Salesforce.
Could you please let us know if this solution in below article helps?
Best regards
Sabrina
Hello,
I did try this, but I have to use the Library load component to get this working. Is there a way around this? so that I don't have to use Library load?
Hello,
Does it works when you use tLibraryLoad component in your job?
You need to check driver version, and check if the driver it is compatible with JDK version you are using.
What's JDK and talend build version are you using?
Best regards
Sabrina
Yes, using tLibraryLoad works in the job, so that is not the issue. My question is, is there a way to make it work without it?
Hello,
We need more information.
What's talend build version and Salesforce are you using? Did you install oracle JDK 1.8?
Best regards
Sabrina