Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I designed a job which read data from Salesforce to populate a json file.
The json file creation is done using the custom components tJSONDoc.
When running the job from Talend Studio, it works well. But when trying to run from the TAC, it failed with the following errors
[statistics] disconnected Exception in thread "Thread-1" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.SerializationConfig.getDefaultPropertyInclusion()Lcom/fasterxml/jackson/annotation/JsonInclude$Value; at com.fasterxml.jackson.databind.node.ObjectNode.serialize(ObjectNode.java:298) at com.fasterxml.jackson.databind.ser.std.SerializableSerializer.serialize(SerializableSerializer.java:41) at com.fasterxml.jackson.databind.ser.std.SerializableSerializer.serialize(SerializableSerializer.java:27) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:129) at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1052) at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:923) at de.jlo.talendcomp.json.JsonDocument.getJsonString(JsonDocument.java:677) at esb.oi2jsn_20_jsoncust_010_consents_0_1.OI2JSN_20_JsonCust_010_consents.tJSONDocSave_2Process(OI2JSN_20_JsonCust_010_consents.java:3660)
After investigations, I found that when building the job Talend brings different versions of the same Jackson jars (see screenshot).
I tried different solutions without any success :
- delete the older version from Talend configuration/ ...,
- build the job from the Studio -> Unzip the build and delete the older version -> re-zip -> it works in my local but it failed after importing the zip in the TAC.
Does someone have a solution ? I will appreciate... I spent too much time trying to fix that.
Thanks,
you can try to load the good jar with tLibraryLoad!
but the best way is to upgrade Tac Version jar version.
good luck
Thanks for your reply.
I ve tried that before. But it's still failing .
Hello,
Are you using Nexus or commandline?
For commandline, have you tried to restart the commandline, and then generate the task again?
Let us know if you can get the user component latest updating.
Best regards
Sabrina
Hello,
I tried both but it did not work.
So far what was successful was the following :
- build the job from the studio
- unzip the zip built and remove the old version of the Jackson jar
- execute locally
This works only when I run in my machine.
When I re-zip and import in the TAC (import zip), it failed during the execution with this error : "connection to the server failed".
Do you know why after having unzipped a build job and re-zipped manually, the TAC cannot execute it ?
Thank you for helping,
Hello,
Thanks for sharing your solution with us on forum.
Best regards
Sabrina
Which version of Talend and the tJSONDoc components (see in the Advanced settings) you are running?
I use these components in Talend Runtime 6.3.1 and we currently checking Talend Runtime 6.5.1.