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

CheckRunHistory API with Spooler throws a null pointer exception

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.11.4
    • 1.11.5, 1.12
    • None

    Description

      Current Situation

      When using CheckRunHistory API with the spooler object a null pointer exception is thrown

      <job  order="yes">
         <script  language="java:javascript">
              <![CDATA[
      function spooler_process()  {
          var jobHistory = new Packages.com.sos.jitl.checkrunhistory.JobHistory( spooler.delegate);
          var jobHistoryInfo = jobHistory.getJobInfo( spooler_task.job.name, 100, "" );
      }
              ]]>
          </script>
          <run_time />
      </job>
      

      Desired Behaviour

      No null pointer exception should be thrown.

      Workaround

      Use the constructor

          var jobHistory = new Packages.com.sos.jitl.checkrunhistory.JobHistory( host,port);
      

      where host is the host where JobScheduler is running and port is the tcp port of JobScheduler.

      Patch

      A patch is available here.
      Please unzip the archiv and copy the jar file to $scheduler_home/lib/patches. Please remove the patch when a relase > 1.11.4 is installed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: