magicdude4eva/graylog-jira-alarmcallback

Unable to build Jira title

Opened this issue · 0 comments

Hi Gerd,

Recently I have installed graylog-jira-alaramcallback plugin 1.0.8 version. Graylog version is 2.4. When I test it, It is creating dummy jira. But when actually alert gets triggerd, it is failing in building the Jira title.
Even though I am using the default configuration I am getting this error. Even if try some static message in "jira_title_template:" filed i am facing the same error.

This is the error message:

`2018-02-22 22:55:00,279 DEBG 'start_graylog' stdout output:
| 2018-02-22 22:55:00,278 ERROR: com.bidorbuy.graylog.alarmcallbacks.jira.JiraAlarmCallback - Error in building title: null

| 2018-02-22 22:55:00,279 DEBG 'start_graylog' stdout output:
| 2018-02-22 22:55:00,279 WARN : org.graylog2.alerts.AlertNotificationsSender - Alarm callback failed. Skipping.
| java.lang.NullPointerException: null
| at java.lang.String.replace(Unknown Source) ~[?:1.8.0_121]
| at com.bidorbuy.graylog.alarmcallbacks.jira.JiraAlarmCallback.buildDescription(JiraAlarmCallback.java:447) ~[?:?]
| at com.bidorbuy.graylog.alarmcallbacks.jira.JiraAlarmCallback.call(JiraAlarmCallback.java:131) ~[?:?]
| at org.graylog2.alerts.AlertNotificationsSender.send(AlertNotificationsSender.java:58) ~[graylog.jar:?]
| at org.graylog2.alerts.AlertScanner.handleTriggeredAlert(AlertScanner.java:45) ~[graylog.jar:?]
| at org.graylog2.alerts.AlertScanner.checkAlertCondition(AlertScanner.java:70) ~[graylog.jar:?]
| at org.graylog2.periodical.AlertScannerThread.lambda$doRun$0(AlertScannerThread.java:63) ~[graylog.jar:?]
| at java.util.ArrayList.forEach(Unknown Source) [?:1.8.0_121]
| at org.graylog2.periodical.AlertScannerThread.doRun(AlertScannerThread.java:63) [graylog.jar:?]
| at org.graylog2.plugin.periodical.Periodical.run(Periodical.java:77) [graylog.jar:?]
| at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
| at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_121]
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_121]
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_121]
| at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_121]
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_121]
| at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]`

Any chance, that I can get some help on this.
Thanks in advance.__