Onprem gateway fails when calling webhook intermittently with following error...
MessageProcesser.processIncomingMessages:64: failed to publish metrics
java.lang.NullPointerException
at com.doi.alarms.integration.outbound.webhook.JsonPublisher.match(JsonPublisher.java:188)
at com.doi.alarms.integration.outbound.webhook.JsonPublisher.publish(JsonPublisher.java:162)
at com.doi.alarms.integration.outbound.webhook.JsonPublisher.publish(JsonPublisher.java:147)
at com.doi.alarms.integration.outbound.webhook.MessageProcesser.publishEvent(MessageProcesser.java:81)
at com.doi.alarms.integration.outbound.webhook.MessageProcesser.processIncomingMessages(MessageProcesser.java:64)
at com.doi.alarms.integration.outbound.webhook.MessageProcesser.run(MessageProcesser.java:196)
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)
Release : 20.2
Component : CA DOI Foundations
The webhook_gtw.cfg contained filters that were not present in the alarm record.
Specifically there was a filter on alarm_description but this field was not present in the alarm.
The source alarm was an APM summary alert
A fix will be introduced to the on-premise gateway so that even if the field is missing, the exception will not be raised and the alarm will still be processed.