Hi, We had a tester report a problem today in SNMP4J-Agent v.1.3 when processing a bulk request. Three threads all reported the same issue, shown below.
I'm assuming the predecessorIndex is no longer a valid value, and either some other thread reduced the size of subrequests in between line 315 and line 317, or repeaterRowSize is getting set to an invalid value. I couldn't find an unsynchronized reference to subrequests or any way the repeaterRowSize could be negative, so I'm at a loss. Of course I've not been able to reproduce the error either. Thanks for any help. Geoff Genz Magpie Telecom Insiders 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR|Exception in thread > "SNMPAgent.0" > 2009-06-11 > 14:22:27,206|ERROR|SNMPAgent.0|STDERR|java.lang.IndexOutOfBoundsExceptio > n: Index: 1, Size: 1 > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > java.util.ArrayList.RangeCheck(Unknown Source) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > java.util.ArrayList.get(Unknown Source) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.request.SnmpRequest.addRepeaterSubRequest(SnmpRequest.j > ava:316) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.request.SnmpRequest$SnmpSubRequestIterator.nextSubReque > st(SnmpRequest.java:506) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.CommandProcessor$GetBulkHandler.processPdu(CommandProce > ssor.java:1074) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.CommandProcessor.processRequest(CommandProcessor.java:4 > 10) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.CommandProcessor.processRequest(CommandProcessor.java:3 > 71) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.CommandProcessor.dispatchCommand(CommandProcessor.java: > 327) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.agent.CommandProcessor$Command.run(CommandProcessor.java:548) > 2009-06-11 14:22:27,206|ERROR|SNMPAgent.0|STDERR| at > org.snmp4j.util.ThreadPool$TaskManager.run(Unknown Source) > 2009-06-11 _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
