tSSH_1_EXIT_CODE returns Null ... sometimes

Highlighted
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
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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch 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