[SNMP4J] v3 NPE

Frank Fock fock at agentpp.com
Mon Jun 7 21:02:40 CEST 2004


Hi Zhan,

This error occurs when the USM returns an error while preparing
the outgoing message (most likely because the user is not known
to the USM which is referenced by the scoped PDU). That the NPE
is thrown is a bug, although it should not happen in a properly
setup application. The next SNMP4J version will throw a
MessageException here instead a NPE.

Best regards,
Frank

Zhan Yi wrote:

>Hi,
>
>I got NPE occasionally using snmp v3 and running multiple concurrent threads.
>Can you give some hint on how to understand and solve this problem? Using v1 there is no problem.
>
>java.lang.NullPointerException
>        at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:330)
>        at org.snmp4j.Snmp.send(Snmp.java:285)
>        at org.snmp4j.Snmp$PendingRequest.run(Snmp.java:661)
>        at java.util.TimerThread.mainLoop(Timer.java:432)
>        at java.util.TimerThread.run(Timer.java:382)
>
>Thank you!
>
>
>Best Regards
>Zhan Yi
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://p15141779.pureserver.info/mailman/listinfo/snmp4j
>  
>





More information about the SNMP4J mailing list