NullPointerException in collectd.log

Description

Investigating broken thresholds, I discovered NPEs in collectd.log (with opennms 1.7.4).

Don't know if it's related, but every time it happens the getEntityMap warning is around. It happens with the 3 default datacollection/thresholding measures :

ciscoEnvMonTemperatureStatusIndex
dskIndex
cbgpPeerAddrFamilyPrefixEntry

And the associated thresholds are not evaluated.

in collectd.log :

2009-07-31 19:39:31,682 WARN [CollectdScheduler-50 Pool-fiber1] CollectorThresholdingSet: getEntityMap: No thresholds configured for resource type cbgpPeerAddrFamilyPrefixEntry. Not processing this collection
2009-07-31 19:39:31,683 ERROR [CollectdScheduler-50 Pool-fiber1] CollectableService: org.opennms.netmgt.collectd.CollectionException: An undeclared throwable was caught during data collection for interface 10.129.1.69/SNMP
org.opennms.netmgt.collectd.CollectionException: An undeclared throwable was caught during data collection for interface 10.129.1.69/SNMP
at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:383)
at org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:292)
at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:292)
at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:422)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed July 31, 2009 at 1:09 PM

This has already been fixed in trunk, and will be in 1.7.6 when it comes out in the next few days.

Philippe Guillebert July 31, 2009 at 1:00 PM

Sorry, I missed the bottom of the stack : NPE happens in function hasThresholds().

Caused by: java.lang.NullPointerException
at org.opennms.netmgt.threshd.ThresholdingSet.hasThresholds(ThresholdingSet.java:174)
at org.opennms.netmgt.threshd.CollectorThresholdingSet.hasThresholds(CollectorThresholdingSet.java:56)
at org.opennms.netmgt.threshd.ThresholdingVisitor.visitAttribute(ThresholdingVisitor.java:126)
at org.opennms.netmgt.collectd.SnmpAttribute.visit(SnmpAttribute.java:71)
at org.opennms.netmgt.collectd.AttributeGroup.visit(AttributeGroup.java:77)
at org.opennms.netmgt.collectd.SnmpCollectionResource.visit(SnmpCollectionResource.java:111)
at org.opennms.netmgt.collectd.SnmpCollectionSet.visit(SnmpCollectionSet.java:237)
at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:371)
... 4 more

Duplicate

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created July 31, 2009 at 11:56 AM
Updated January 27, 2017 at 4:25 PM
Resolved December 7, 2009 at 3:54 PM

Flag notifications