Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
1.11.4
-
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.