ASN1Parser.encodeVarBindList 抛出 java.lang.ArrayIndexOutOfBoundsException
我正在使用 Adventnet,它在调用方法 ASN1Parser.encodeVarBindList(SnmpvarBind) 时抛出 ArrayIndexOutOfBoundsException 异常,
SnmpvarBind 变量长度超过 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)
i'm using adventnet, and it throws ArrayIndexOutOfBoundsException exception while calling the methid ASN1Parser.encodeVarBindList(SnmpvarBind)
the SnmpvarBind varibale length is more than 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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebNMS(Zoho,前 Adventnet)论坛 是更好的地方问这些问题。
更好的是直接询问 Zoho 支持。
顺便说一句,为什么他们认为你必须反编译他们的类?
WebNMS (Zoho, former Adventnet) forum is better place to ask these questions.
Even better is to ask the Zoho support directly.
BTW why they think that you had to decompile their classes?