[SNMP4J] SNMP Buffer OverFlow Exception

vinod bvinod at barc.gov.in
Fri Nov 18 05:53:32 CET 2011


Hi,

I am facing the Buffer OverFlow Exception when trying to do send a snmp 
packet. The Stack Trace is given below.

java.nio.BufferOverflowException
        at java.nio.Buffer.nextPutIndex(Buffer.java:513)
        at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:163)
        at org.snmp4j.asn1.BEROutputStream.write(BEROutputStream.java:64)
        at org.snmp4j.asn1.BER.encodeHeader(BER.java:119)
        at org.snmp4j.smi.Null.encodeBER(Null.java:99)
        at 
org.snmp4j.smi.VariableBinding.encodeBER(VariableBinding.java:181)
        at org.snmp4j.PDU.encodeBER(PDU.java:528)
        at org.snmp4j.mp.MPv1.prepareOutgoingMessage(MPv1.java:132)
        at 
org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:444)

I had increased all the memory limits in linux and still facing this 
problem very often. Kindly guide me in solving the problem.

Thanks,
Vinod Kumar Boppanna




More information about the SNMP4J mailing list