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

The Inventory plug-in should send an "InventoryEventUpdateFinished" event always with a key that contains the type and the path of the processed object

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.12.8
    • None

    Description

      Current Situation

      • Whenever a job, order or schedule is assigned a calendar in JOC Cockpit or an already assigned calendar is changed then the corresponding configuration of the object has to be changed.
      • For this purpose, an event is sent to the Inventory Plug-in in the JobScheduler.
      • The Inventory Plug-in sends an event to JOC Cockpit on completion.
      • Unfortunately, this event does not contain the required content, so that the ./events API in JOC Cockpit raises an error
        2018-11-12 17:25:29,454 ERROR ool-577-thread-1 c.s.j.c.e.EventCallable                      - 
        java.lang.ArrayIndexOutOfBoundsException: 1
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.nonEmptyEvent(EventCallableOfCurrentJobScheduler.java:249)
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.getEventSnapshotsMap(EventCallableOfCurrentJobScheduler.java:449)
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.getEventSnapshotsMap(EventCallableOfCurrentJobScheduler.java:451)
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.getEventSnapshots(EventCallableOfCurrentJobScheduler.java:193)
        	at com.sos.joc.classes.event.EventCallable.call(EventCallable.java:78)
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.call(EventCallableOfCurrentJobScheduler.java:74)
        	at com.sos.joc.classes.event.EventCallableOfCurrentJobScheduler.call(EventCallableOfCurrentJobScheduler.java:42)
        	at java.util.concurrent.FutureTask.run(Unknown Source)
        	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        	at java.util.concurrent.FutureTask.run(Unknown Source)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        	at java.lang.Thread.run(Unknown Source)
        

      Desired Behavior

      The Inventory Plug-in should send an "InventoryEventUpdateFinished" event always with a key that contains the type and the path of the processed object.

      Patch

      • A patch for JobScheduler 1.12.7 is here available.
        • Stop JobScheduler
        • Copy the downloaded jar file to ./lib/patches
        • Start JobScheduler

      Attachments

        Activity

          People

            sp Santiago Aucejo Petzoldt
            oh Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: