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

Inventory does not work when there is a job without a script

    XMLWordPrintable

Details

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

    Description

      Current Situation

      • When a user commits an error during configuration of a job and creates a job that does not have a script then the Inventory Plugin crashes.
      • In the scheduler.log file there are exceptions reported like
        17 13:38:19.307 com.sos.jitl.inventory.data.InventoryEventUpdateUtil [ERROR] - [inventory] error occured processing event on Job:/test/job3
        java.lang.NullPointerException
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processJobEvent(InventoryEventUpdateUtil.java:1084)
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processEvent(InventoryEventUpdateUtil.java:845)
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processGroupedEvents(InventoryEventUpdateUtil.java:465)
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.processEventType(InventoryEventUpdateUtil.java:808)
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.execute(InventoryEventUpdateUtil.java:257)
        	at com.sos.jitl.inventory.data.InventoryEventUpdateUtil.execute(InventoryEventUpdateUtil.java:228)
        	at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin.executeEventBasedInventoryProcessing(InitializeInventoryInstancePlugin.java:274)
        	at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin.access$300(InitializeInventoryInstancePlugin.java:45)
        	at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin$2.run(InitializeInventoryInstancePlugin.java:134)
        	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)
        
      • Please note that a job without a script is an invalid configuration.

      Desired Behavior

      • When there is a job without script element than the Inventory Plugin should handle this misconfigured job correctly.

      Workaround

      • Write a correct job.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: