Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The JITL SSH Job throws a nullpointer exception when the ssh server does not provide an exit code.
This should not happen. Instead the message
" ERROR [main] (SOSSSHJob2.java:275) - Exception raised: java.lang.RuntimeException: Error reading exit code from SSH-Server. No exit code is available."
should be shown in the log.
As stated in http://orion-ssh2.sourceforge.net/javadoc/com/trilead/ssh2/Session.html it is possible that not all server implementations return this value.
To reproduce this define a order with the paramters
ignore_stderr=false
ignore_error=false
raise_exception_on_error=true
command=ls -la > log 1>&2