tSSH_1_EXIT_CODE returns Null ... sometimes

One Star

tSSH_1_EXIT_CODE returns Null ... sometimes

Hello,

I use a tSSH component to execute a shell script on a remote computer,
a tJava is plugged to tSSH to test tSSH_1_EXIT_CODE
sometimes tSSH_1_EXIT_CODE returns Null


Here is one of the if statement iI think is returning Null :

((Integer)globalMap.get("tSSH_1_EXIT_CODE"))==0 && ((String)globalMap.get("tSSH_1_STDOUT")).equals("1")


Does it means I need to check the "Use timeout" option ?


I'm using version 4.03r47759 of the studio.

Best regards,
Didier
Highlighted
One Star

Re: tSSH_1_EXIT_CODE returns Null ... sometimes

tSSH_1_STDOUT always returns a value as I display it in tJava

so the problem really comes from tSSH_1_EXIT_CODE


Code Retour Shell (tSSH_1_STDOUT) : 0
Child job return 1. It doesn't terminate normally.
Exception in component tJava_2
java.lang.NullPointerException
at pgesref.jrrfpro_1_0.jRRFPRO.tJava_2Process(jRRFPRO.java:2875)
at pgesref.jrrfpro_1_0.jRRFPRO.tSSH_1Process(jRRFPRO.java:2782)
at pgesref.jrrfpro_1_0.jRRFPRO.tMysqlInput_3Process(jRRFPRO.java:2612)
at pgesref.jrrfpro_1_0.jRRFPRO.tMysqlRow_5Process(jRRFPRO.java:2161)
at pgesref.jrrfpro_1_0.jRRFPRO.tJava_1Process(jRRFPRO.java:1998)
at pgesref.jrrfpro_1_0.jRRFPRO.tMysqlInput_1Process(jRRFPRO.java:1858)
at pgesref.jrrfpro_1_0.jRRFPRO.runJobInTOS(jRRFPRO.java:17259)
at pgesref.jrrfpro_1_0.jRRFPRO.main(jRRFPRO.java:16801)



Any idea ?

Still using TIS TE 4.03r47759

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Downloads and Trials

Test drive Talend's enterprise products.

Downloads