我正在使用adventnet,并在调用methid ASN1Parser.encodeVarBindList(SnmpvarBind)时抛出ArrayIndexOutOfBoundsException异常
SnmpvarBind varibale长度超过1024
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.adventnet.snmp.snmp2.ASNTypes.encodeOctets(ASNTypes.java:255)
at com.adventnet.snmp.snmp2.SnmpString.encode(SnmpString.java:371)
at com.adventnet.snmp.snmp2.SnmpVarBind.encode(SnmpVarBind.java:206)
at com.adventnet.snmp.snmp2.ASN1Parser.encodeVarBindList(ASN1Parser.java:617)
at com.adventnet.snmp.snmp2.ASN1ParserProxy.encodeVarBind(ASN1ParserProxy.java:64)
at com.cisco.csrc.dcf.SnmpVarBindMgr.encodeVarBind(SnmpVarBindMgr.java:493)
答案 0 :(得分:0)