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

Frank Fock fock at agentpp.com
Thu Aug 3 18:43:34 CEST 2006


Glenn,

I have uploaded SNMP4J-Agent 1.0 beta5 which should fix this
problem. Unfortunately, I have not had the time to test
the SNMP version translation added in beta5 thoroughly.
I will do this within the next weeks before v1.0 is released
end of August.

Nevertheless, I am looking forward to get some feedback
if the fix solves your problem!

Note: SNMP4J-Agent 1.0 beta5 needs SNMP4J 1.7.3 which has
been released today too.

Thanks,
Frank

Glenn Gerhardt (glgerhar) wrote:
> 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
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

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




More information about the SNMP4J mailing list