[SNMP4J] ConcurrentModificationException / Bug

Stefan snmp4j.mlist at trdtech.com
Tue Oct 31 00:24:15 CET 2006


Oops, I should have mentioned that I am using version 1.7.6a.

Thanks,
Stefan


-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Monday, October 30, 2006 06:15 PM
To: Stefan
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] ConcurrentModificationException / Bug

Hello Stefan,

May be upgrading to the latest version can fix this problem.

Best regards,
Frank

Stefan wrote:
> Hello all,
>  
> I have a slight issue that I'm wondering if I can get some help with. 
> I have a manger setup where it's sending async requests at a very fast 
> speed (used as a benchmark system). However, often when I close the 
> SNMP session I get an error:
>  
> Exception in thread "AWT-EventQueue-0"
> java.util.ConcurrentModificationException
>         at java.util.Hashtable$Enumerator.next(Hashtable.java:1020)
>         at org.snmp4j.Snmp.close(Snmp.java:433)
> ... my code trace ...
>  
>  
> This only occurs when I'm sending async requests with significant
frequency.
> The main problem may be because of the agent not responding in a 
> timely fasion and I have a significant number of pending requests (the 
> error occurs when iterating through the PendingRequests).
>  
> So, my question is: Does anyone have any suggestions for a workaround? 
> Could this be fixed in SNMP4J?
>  
> Any advice would be helpful.
>  
> Thanks,
> Stefan




More information about the SNMP4J mailing list