[SNMP4J] NPE When Not Using V3

Frank Fock fock at agentpp.com
Sat Nov 6 00:03:31 CET 2010


Ok, the other bug is now also fixed.
You can download it from the same location.

Best regards,
Frank

On 05.11.2010 22:46, Beck, Dick wrote:
> 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
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list