Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-202

A job with state=error produces a null pointer exception in JOC

    XMLWordPrintable

Details

    Description

      Current Situation

      When an job has the state=error, this is not reflected in JOC.
      Instead of this a null pointer exception is thrown

      url: /jobs
      body:
      {"jobschedulerId":"scheduler_joc_cockpit","compact":true,"folders":[

      {"folder":"/job_chain1","recursive":false}

      ]}

      url: /job_chain
      body:

      {"jobschedulerId":"scheduler_joc_cockpit","jobChain":"/job_chain1","maxOrders":5}

      url: /job_chains
      body:
      {"jobschedulerId":"scheduler_joc_cockpit","compact":false,"folders":[

      {"folder":"/","recursive":false}

      ],"maxOrders":5}

      How to reproduce:

      create an order with this job

      
      
      
      <job>
         <script  language="java:javascript">
              <![CDATA[
      function spooler_process(){
          var order = spooler.create_order();
          order.id = "ń";
          var job_chain = spooler.job_chain("/job_chain1");
          job_chain.add_order(order);
         return false;
      }
              ]]>
          </script>
      </job>
      

      Desired Behaviour

      When a job is in error state this should be reflected by JOC.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified