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

Possibly NPE in Inventory Plugin when reading private.conf

    XMLWordPrintable

Details

    Description

      Current Situation

      Possibly NullPointerException in Inventory Plugin when reading private.conf
      A NPE occurs, when a private.conf file exists in JobScheduler AND

      1. the config item jobscheduler.master.auth.users is missing
        OR
      2. the config item jobscheduler.master.auth.users is present, but the key (schedulerId) is missing
      .18 11:18:51.717 com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin [INFO ] - *** initial inventory instance update started ***
      .18 11:18:51.864 com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin [ERROR] - java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.sos.jitl.inventory.data.ProcessInitialInventoryUtil.getAuthFromFile(ProcessInitialInventoryUtil.java:541)
      	at com.sos.jitl.inventory.data.ProcessInitialInventoryUtil.getDataFromJobscheduler(ProcessInitialInventoryUtil.java:112)
      	at com.sos.jitl.inventory.data.ProcessInitialInventoryUtil.process(ProcessInitialInventoryUtil.java:66)
      	at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin.executeInitialInventoryProcessing(InitializeInventoryInstancePlugin.java:175)
      	at com.sos.jitl.inventory.plugins.InitializeInventoryInstancePlugin$1.run(InitializeInventoryInstancePlugin.java:104)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Desired Behavior

      Inventory Plugin should read private.conf properly and no error should occur in case the items mentioned above are missing.

      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: