[SNMP4J] NPE When Not Using V3
Beck, Dick
Dick_Beck at ibi.com
Fri Nov 5 22:46:33 CET 2010
I attempted to use the new jars you suggested in my last letter. No luck - same error at a different line number. Thank you for your assistance.
java.lang.NullPointerException
at org.snmp4j.smi.OctetString.<init>(OctetString.java:56)
at org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl.notify(NotificationOriginatorImpl.java:335)
at org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl.notify(NotificationOriginatorImpl.java:136)
at org.snmp4j.agent.AgentConfigManager.fireLaunchNotifications(AgentConfigManager.java:373)
at org.snmp4j.agent.AgentConfigManager.launch(AgentConfigManager.java:365)
at org.snmp4j.agent.AgentConfigManager.run(AgentConfigManager.java:242)
...
The code at NotificationOriginatorImpl.java:335 does new OctetString(targetMIB.getLocalEngineID()).
The call to getLocalEngineID() returns null because we have no MPv3 registered in the MessageDispatcher.
The OctetString constructor throws the NullPointerException because it rejects the null in the argument.
Dick Beck
More information about the SNMP4J
mailing list