Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-116

When SSH Server does not provide the exit code a null pointer exception is thrown.

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.4
    • 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

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Uwe Risse Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: