NPE in JMX Collector when collecting composite attributes

Description

The following NPE occurred while attempting to collect composite attributes:

2016-06-13 12:26:20,762 DEBUG [Collectd-Thread-4-of-50] o.o.n.c.JMXCollector: jsr160 Collector.collect: IOException while collecting address: /127.0.0.1 java.lang.NullPointerException at org.opennms.netmgt.collectd.JMXCollector$JMXCollectionAttributeType.<init>(JMXCollector.java:461) ~[opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.JMXCollector$1.process(JMXCollector.java:315) ~[opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.jmx.impl.DefaultJmxCollector.collect(DefaultJmxCollector.java:141) ~[org.opennms.core.jmx.impl-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.jmx.impl.DefaultJmxCollector.collect(DefaultJmxCollector.java:107) ~[org.opennms.core.jmx.impl-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.JMXCollector.collect(JMXCollector.java:304) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectionSpecification.collect(CollectionSpecification.java:274) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:395) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:337) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectableService.access$200(CollectableService.java:69) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectableService$1.run(CollectableService.java:315) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.core.logging.Logging.withPrefix(Logging.java:70) [org.opennms.core.logging-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:304) [opennms-services-17.0.1-SNAPSHOT.jar:?] at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209) [opennms-services-17.0.1-SNAPSHOT.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45] at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-17.0.1-SNAPSHOT.jar:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jesse White June 14, 2016 at 10:07 PM

Cherry-picked into release-2016.1.0.

Jesse White June 14, 2016 at 6:01 PM

Fixed in foundation-2016 with 180df4b65dda96cecf42b27a9df99cb027635e0c.

Fixed

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created June 13, 2016 at 1:08 PM
Updated June 14, 2016 at 10:07 PM
Resolved June 14, 2016 at 10:07 PM

Flag notifications