Hi Frank, Thanks for the reply. Sorry for very late reply.
Actually, i was not doing any modification while sending the SNMP Request. After little inspection of the error it seems the snmp package was trying to put a Byte data in the Buffer, but some how the data is larger than a byte. We got this error when we were using the snmp4j-1.11.1.jar package. I had moved from this one to the very latest one snmp4j-2.0.2.jar package. Till now, i have not faced the BufferOverflow Error. I guess the problem is solved (any ways, i will test for few more days to be sure on this) Thanks once again for the reply. Regards, Vinod Kumar Boppanna Frank Fock wrote: > Hi Vinod, > > You do not have to change anything on OS level. > With SNMP you cannot send packets that exceed 64K. > But I do not think that this is the problem here. > I guess that you modify the PDU contents while it > is being encoded. Have you checked that already? > > Best regards, > Frank > > > Am 18.11.2011 05:53, schrieb vinod: > >> 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 >> >> _______________________________________________ >> SNMP4J mailing list >> [email protected] >> http://lists.agentpp.org/mailman/listinfo/snmp4j >> > > _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
