Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9187

NPE in GeolocationProvisioningAdapter

    Details

    • Sprint:
      Horizon - March 29th, Horizon - May 10th

      Description

      The following NPE was observed in provisiond.log while running one of the latest 20.0.0-SNAPSHOT builds.

      2017-03-06 16:50:24,617 INFO  [nodeScanExecutor-3] o.o.n.p.s.NodeScan: Finished scanning node 7/nodes2/1488836868723
      2017-03-06 16:50:24,632 DEBUG [ProvisioningAdapterManager:EventListener-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: calling onEvent on ProvisioningAdapterManager:EventListener for event uei.opennms.org/internal/provisiond/nodeScanCompleted dbid 730 with time 2017-03-06T16:50:24.616-0500
      2017-03-06 16:50:24,632 INFO  [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.s.ProvisioningAdapterManager: handleScanCompletedEvent: Calling adapter:7 for node: GeolocationProvisioningAdapter
      2017-03-06 16:50:24,632 INFO  [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.s.ProvisioningAdapterManager: handleScanCompletedEvent: Calling adapter:7 for node: RancidProvisioningAdapter
      2017-03-06 16:50:24,632 DEBUG [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.RancidProvisioningAdapter: Scheduling: 7 for nodeid: Update
      2017-03-06 16:50:24,632 INFO  [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.s.ProvisioningAdapterManager: handleScanCompletedEvent: Calling adapter:7 for node: SnmpAssetProvisioningAdapter
      2017-03-06 16:50:24,632 INFO  [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.SnmpAssetProvisioningAdapter: createScheduleForNode: Scheduling AdapterOperationSchedule; Initial delay: 300, Interval: 60, Attempts: 3, Units: SECONDS for nodeid Update with schedule: 7
      2017-03-06 16:50:25,632 DEBUG [pool-10-thread-1] o.o.n.p.SimplerQueuedProvisioningAdapter: processPendingOperationForNode: Update for node ID: 7
      2017-03-06 16:50:25,636 DEBUG [pool-10-thread-1] o.o.n.p.SimplerQueuedProvisioningAdapter: processPendingOperationForNode: calling doUpdateNode() for node ID: 7
      2017-03-06 16:50:25,636 DEBUG [pool-10-thread-1] o.o.n.p.GeolocationProvisioningAdapter: Invoked doUpdateNode on node with id 7.
      2017-03-06 16:50:25,639 ERROR [pool-10-thread-1] o.o.n.p.SimpleQueuedProvisioningAdapter: Unexpected exception during node operation: null
      java.lang.NullPointerException
      	at org.opennms.netmgt.provision.GeolocationProvisioningAdapter.doUpdateNodeInternal(GeolocationProvisioningAdapter.java:116) ~[opennms-provision-geolocation-20.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.provision.GeolocationProvisioningAdapter.doUpdateNode(GeolocationProvisioningAdapter.java:76) ~[opennms-provision-geolocation-20.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter$2.doInTransaction(SimplerQueuedProvisioningAdapter.java:129) ~[opennms-provision-api-20.0.0-SNAPSHOT.jar:?]
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[org.apache.servicemix.bundles.spring-tx-4.0.7.RELEASE_1.jar:?]
      	at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter.processPendingOperationForNode(SimplerQueuedProvisioningAdapter.java:125) ~[opennms-provision-api-20.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter$AdapterOperation.run(SimpleQueuedProvisioningAdapter.java:423) [opennms-provision-api-20.0.0-SNAPSHOT.jar:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_121]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      

        Attachments

          Activity

            People

            • Assignee:
              mvr Markus von Rüden
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: