[SNMP4J] IllegalArgumentException: MPv3 only accepts ScopedPDU instances as pdu parameter

Glenn Gerhardt (glgerhar) glgerhar at cisco.com
Tue Aug 1 19:40:58 CEST 2006


Frank, 
I implemented the fix you suggested on July 22 for getting past the
NullPointerException 
when doing v3 proxy.  I am now getting past the previous exception, but
I am 
now getting an IllegalArgumentException later on.

 Exception in thread "RequestPool.0" java.lang.IllegalArgumentException:
MPv3 only accepts ScopedPDU instances as pdu parameter
	at org.snmp4j.mp.MPv3.prepareOutgoingMessage(MPv3.java:575)
	at
org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:403)
	at org.snmp4j.Snmp.sendMessage(Snmp.java:955)
	at org.snmp4j.Snmp.send(Snmp.java:802)
	at org.snmp4j.Snmp.send(Snmp.java:758)
	at
org.snmp4j.agent.mo.snmp.ProxyForwarderImpl.singleForward(ProxyForwarder
Impl.java:157)
	at
org.snmp4j.agent.mo.snmp.ProxyForwarderImpl.forward(ProxyForwarderImpl.j
ava:73)
	at
org.snmp4j.agent.CommandProcessor$ProxyCommand.run(CommandProcessor.java
:461)
	at
org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:238)

This is occuring when the request reaches the agent as a v2c packet, and
is then to be  
proxied to a v3 agent.  Any suggestions for a fix to this?
 
Thanks, Glenn



More information about the SNMP4J mailing list