[snmp] Re: V3 Discovery problem
Birgit Arkesteijn
birgit at westhawk.co.uk
Thu Jun 12 16:06:54 BST 2008
Hi Josh,
The java.lang.NullPointerException happens on the line
engineLookup.containsKey(snmpEngineId);
so snmpEngineId is null.
If snmpEngineId is null this *should* mean that discoveryEngineId() is called.
However, if discoveryEngineId() is called, this *should* mean that snmpEngineId
is discovered. It sounds a bit like chicken and egg.
If you set debug to 5, it will print everything to do with discovery and setting
the TimeWindow. Could you please do this and post back the results?
Cheers, Birgit
----- "Josh Bers" <jbers at bbn.com> wrote:
> I have run into a (new) SNMP V3 discovery problem with the stack
> (version 6.0 most recent release version):
>
>
>
> The problem shows up when I try to contact an agent that is
> misconfigured and then re-configured correctly. During this time the
> stack is running, attempting to request data from the agent.
>
>
>
> 1. The agent has V3 enabled, however, the username that I am using
> is not configured correctly on the agent. It appears that discovery
> half succeeds,
> 2. I reconfigure the agent to know about the username and restart
> it,
> 3. The stack (which has not been restarted) then gets the
> following exception while doing discovery:
>
>
>
>
> java.lang.NullPointerException"
> java.lang.NullPointerException
> at java.util.Hashtable.containsKey(Hashtable.java:314)
> at
> uk.co.westhawk.snmp.stack.TimeWindow.isTimeLineKnown(TimeWindow.java:218)
> at
> uk.co.westhawk.snmp.beans.UsmDiscoveryBean.discoveryTimeLine(UsmDiscoveryBean.java:299)
> at
> uk.co.westhawk.snmp.beans.UsmDiscoveryBean.startDiscovery(UsmDiscoveryBean.java:195)
> at
> uk.co.westhawk.snmp.stack.SnmpContextv3Basis.discoverIfNeeded(SnmpContextv3Basis.java:953)
> at
> uk.co.westhawk.snmp.stack.SnmpContextv3Basis.addPdu(SnmpContextv3Basis.java:562)
> at
> uk.co.westhawk.snmp.stack.SnmpContextv3Basis.addPdu(SnmpContextv3Basis.java:478)
> at
> uk.co.westhawk.snmp.stack.SnmpContextv3Pool.addPdu(SnmpContextv3Pool.java:391)
> at uk.co.westhawk.snmp.stack.Pdu.send(Pdu.java:221)
> at uk.co.westhawk.snmp.stack.Pdu.send(Pdu.java:204)
>
>
>
> Any help with fixing/diagnosing this problem would be much
> appreciated.
>
>
>
> Josh
>
>
>
> Josh Bers
>
> Senior Engineer, Mobile Networking Systems
>
> BBN Technologies
>
> web: www.bbn.com ph: (617) 873-4262 fax: (617) 873-4523
More information about the snmp
mailing list