NullPointerException in auto-action code path

Description

issue with the autoaction.

I performed a fresh installation with debian squeeze 32Bit and 64Bit and even with Ubunto 64Bit tried an example event with autoaction in eventconfiguration.

The Event processing is working fine, but there is no script execution.

Here the Actiond - logfile:

2013-01-15 13:49:12,907 INFO [Actiond:BroadcastEventProcessor] EventIpcManagerDefaultImpl: run: calling onEvent on Actiond:BroadcastEventProcessor for event uei.opennms.org/NCM/ATS dbid 25 with time Tuesday, 15 January 2013 12:49:12 o'clock GMT
2013-01-15 13:49:12,907 WARN [Actiond:BroadcastEventProcessor] EventIpcManagerDefaultImpl: run: an unexpected error occured during ListenerThread Actiond:BroadcastEventProcessor run: java.lang.NullPointerException
java.lang.NullPointerException
at org.opennms.netmgt.actiond.BroadcastEventProcessor.onEvent(BroadcastEventProcessor.java:97)
at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$ListenerThread.run(EventIpcManagerDefaultImpl.java:175)
at java.lang.Thread.run(Thread.java:662)

Environment

Debian or Ubuntu

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger February 27, 2013 at 12:06 PM

I fixed this problem by reversing a string constant equals comparison. As a workaround for older versions, please make sure that all <auto-action> tags in your eventconf have state="on" or state="off" XML attributes. If the "state" attribute is missing, this problem will occur. Marking as fixed.

commit 436e87ffce79b91bb6de18f64933c5b9ae2e58f0

Jeff Gehlbach February 27, 2013 at 10:36 AM

Support ticket https://mynms.opennms.com/Ticket/Display.html?id=2026 references this problem.

Ryan Frederick January 24, 2013 at 3:54 PM

The same issue is present in 1.10.8 as well.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Due date

Priority

PagerDuty

Created January 16, 2013 at 2:38 PM
Updated January 27, 2017 at 4:19 PM
Resolved February 27, 2013 at 12:06 PM
Loading...