Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.3
-
Fix Version/s: 1.8.5
-
Component/s: Maps/Linkd
-
Security Level: Default (Default Security Scheme)
-
Labels:None
-
Environment:Operating System: Linux
Platform: PC
-
Bugzilla Id:4051
Description
New Linkd's IpCidrRouteTable scanner crashes on Ubuntu 10.04. with the exception shown below.
I noticed that this happens on every Cisco Device in our network matching the initial 'sysoidRootMask=".1.3.6.1.4.1.9"' configuration directive in linkd-configuration.xml. In detail: the device has not to match the "<specific>" oid-appendix for this exception to happen.
This error blocks scanning of any further snmp information through linkd.
Additional information can be supplied as requested.
-------------------------------------------
2010-08-16 09:09:06,366 DEBUG [LinkdScheduler-10 Pool] Scheduler: run: found ready runnable Ready Runnable(s) SnmpCollection ip=/xxx.xxx.xxx.xxx port=161 community=xxxx package=Layer2-Scanner collectBridgeForwardingTable=true collectStpNode=true collectStpTable=true collectCdpTable=true collectIpRouteTable=true saveIpRouteTable=true saveStpInterfaceTable=true saveStpNodeTable=true
2010-08-16 09:09:06,367 DEBUG [LinkdScheduler-10 Pool] RunnableConsumerThreadPool$SizingFifoQueue: adjust: started fiber LinkdScheduler-10 Pool-fiber0 ratio = 1.0, alive = 0
2010-08-16 09:09:06,528 DEBUG [LinkdScheduler-10 Pool-fiber0] SnmpCollection: run: collecting : AgentConfig[Address: /xxx.xxx.xxx.xxx, ProxyForAddress: null, Port: 161, Community: xxx, Timeout: 1800, Retries: 1, MaxVarsPerPdu: 10, MaxRepetitions: 2, Max request size: 65535, Version: v2c]
2010-08-16 09:09:06,541 ERROR [LinkdScheduler-10 Pool-fiber0] SnmpCollection: SnmpCollection.run: org.opennms.netmgt.linkd.snmp.IpCidrRouteTable unable to invoke class.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:392)
at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:309)
at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:427)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.opennms.netmgt.capsd.snmp.NamedSnmpVar.getTrackersFor(NamedSnmpVar.java:280)
at org.opennms.netmgt.capsd.snmp.SnmpTable.<init>(SnmpTable.java:68)
at org.opennms.netmgt.linkd.snmp.IpCidrRouteTable.<init>(IpCidrRouteTable.java:36)
... 8 more
2010-08-16 09:09:06,554 DEBUG [LinkdScheduler-10 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: run: an unexpected error occured during fiber run, calling error liseners
2010-08-16 09:09:06,555 ERROR [LinkdScheduler-10 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: No error listeners defined for unexpected error: java.lang.NullPointerException
java.lang.NullPointerException
at org.opennms.netmgt.snmp.AggregateTracker.<init>(AggregateTracker.java:242)
at org.opennms.netmgt.snmp.AggregateTracker.<init>(AggregateTracker.java:234)
at org.opennms.netmgt.snmp.SnmpUtils$TooBigReportingAggregator.<init>(SnmpUtils.java:52)
at org.opennms.netmgt.snmp.SnmpUtils$TooBigReportingAggregator.<init>(SnmpUtils.java:48)
at org.opennms.netmgt.snmp.SnmpUtils.createTooBigTracker(SnmpUtils.java:66)
at org.opennms.netmgt.snmp.SnmpUtils.createWalker(SnmpUtils.java:62)
at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:424)
at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:309)
at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:427)
at java.lang.Thread.run(Thread.java:595)
I noticed that this happens on every Cisco Device in our network matching the initial 'sysoidRootMask=".1.3.6.1.4.1.9"' configuration directive in linkd-configuration.xml. In detail: the device has not to match the "<specific>" oid-appendix for this exception to happen.
This error blocks scanning of any further snmp information through linkd.
Additional information can be supplied as requested.
-------------------------------------------
2010-08-16 09:09:06,366 DEBUG [LinkdScheduler-10 Pool] Scheduler: run: found ready runnable Ready Runnable(s) SnmpCollection ip=/xxx.xxx.xxx.xxx port=161 community=xxxx package=Layer2-Scanner collectBridgeForwardingTable=true collectStpNode=true collectStpTable=true collectCdpTable=true collectIpRouteTable=true saveIpRouteTable=true saveStpInterfaceTable=true saveStpNodeTable=true
2010-08-16 09:09:06,367 DEBUG [LinkdScheduler-10 Pool] RunnableConsumerThreadPool$SizingFifoQueue: adjust: started fiber LinkdScheduler-10 Pool-fiber0 ratio = 1.0, alive = 0
2010-08-16 09:09:06,528 DEBUG [LinkdScheduler-10 Pool-fiber0] SnmpCollection: run: collecting : AgentConfig[Address: /xxx.xxx.xxx.xxx, ProxyForAddress: null, Port: 161, Community: xxx, Timeout: 1800, Retries: 1, MaxVarsPerPdu: 10, MaxRepetitions: 2, Max request size: 65535, Version: v2c]
2010-08-16 09:09:06,541 ERROR [LinkdScheduler-10 Pool-fiber0] SnmpCollection: SnmpCollection.run: org.opennms.netmgt.linkd.snmp.IpCidrRouteTable unable to invoke class.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:392)
at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:309)
at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:427)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.opennms.netmgt.capsd.snmp.NamedSnmpVar.getTrackersFor(NamedSnmpVar.java:280)
at org.opennms.netmgt.capsd.snmp.SnmpTable.<init>(SnmpTable.java:68)
at org.opennms.netmgt.linkd.snmp.IpCidrRouteTable.<init>(IpCidrRouteTable.java:36)
... 8 more
2010-08-16 09:09:06,554 DEBUG [LinkdScheduler-10 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: run: an unexpected error occured during fiber run, calling error liseners
2010-08-16 09:09:06,555 ERROR [LinkdScheduler-10 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: No error listeners defined for unexpected error: java.lang.NullPointerException
java.lang.NullPointerException
at org.opennms.netmgt.snmp.AggregateTracker.<init>(AggregateTracker.java:242)
at org.opennms.netmgt.snmp.AggregateTracker.<init>(AggregateTracker.java:234)
at org.opennms.netmgt.snmp.SnmpUtils$TooBigReportingAggregator.<init>(SnmpUtils.java:52)
at org.opennms.netmgt.snmp.SnmpUtils$TooBigReportingAggregator.<init>(SnmpUtils.java:48)
at org.opennms.netmgt.snmp.SnmpUtils.createTooBigTracker(SnmpUtils.java:66)
at org.opennms.netmgt.snmp.SnmpUtils.createWalker(SnmpUtils.java:62)
at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:424)
at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:309)
at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:427)
at java.lang.Thread.run(Thread.java:595)
Issue Links
- blocks
-
NMS-4005
linkd not working
-