[SNMP4J] ConcurrentModificationException / Bug

Stefan snmp4j.mlist at trdtech.com
Tue Oct 31 00:07:22 CET 2006


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