Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Current Situation
Possibly NullPointerException in Inventory Plugin when reading private.conf
A NPE occurs, when a private.conf file exists in JobScheduler AND
- the config item jobscheduler.master.auth.users is missing
OR - 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.