ERROR - java.nio.BufferOverflowException - Possible Causes of BufferOverflowException

Exception Thrown By:Cause
ClassMethod
ByteBuffer public abstract ByteBuffer
put(byte b)
If this buffer's current position
is not smaller than its limit.
ByteBuffer public ByteBuffer
put(ByteBuffer src)
If there is insufficient space in this
buffer for the remaining bytes in the source buffer
ByteBuffer public final ByteBuffer
put(byte[] src)
If there is
insufficient space in this buffer
ByteBuffer public abstract ByteBuffer
putChar(char value)
If there are fewer
than two bytes remaining in this buffer
ByteBuffer public abstract ByteBuffer
putShort(short value)
If there are fewer
than two bytes remaining in this buffer
ByteBuffer public abstract ByteBuffer
putInt(int value)
If there are fewer
than four bytes remaining in this buffer
ByteBuffer public abstract ByteBuffer
putLong(long value)
If there are fewer
than eight bytes remaining in this buffer
ByteBuffer public abstract ByteBuffer
putFloat(float value)
If there are fewer
than four bytes remaining in this buffer
ByteBuffer public abstract ByteBuffer
putDouble(double value)
If there are fewer
than eight bytes remaining in this buffer
CharBuffer public abstract CharBuffer
put(char c)
If this buffer's current position
is not smaller than its limit
CharBuffer public CharBuffer
put(CharBuffer src)
If there is insufficient space in this
buffer for the remaining chars in the source buffer
CharBuffer public final CharBuffer
put(char[] src)
If there is
insufficient space in this buffer
CharBuffer public final CharBuffer
put(String src)
If there is
insufficient space in this buffer
CharBuffer public CharBuffer
append(CharSequence csq)
If there is
insufficient space in this buffer
CharBuffer public CharBuffer
append(char c)
If there is
insufficient space in this buffer
DoubleBuffer public abstract DoubleBuffer
put(double d)
If this buffer's current position
is not smaller than its limit
DoubleBuffer public DoubleBuffer
put(DoubleBuffer src)
If there is insufficient space in this
bufferfor the remaining doubles in the source buffer
DoubleBuffer public final DoubleBuffer
put(double[] src)
If there is
insufficient space in this buffer
FloatBuffer public abstract FloatBuffer
put(float f)
If this buffer's current position
is not smaller than its limit
FloatBuffer public FloatBuffer
put(FloatBuffer src)
If there is insufficient space in this
bufferfor the remaining floats in the source buffer
FloatBuffer public final FloatBuffer
put(float[] src)
If there is
insufficient space in this buffer
IntBuffer public abstract IntBuffer
put(int i)
If this buffer's current position
is not smaller than its limit
IntBuffer public IntBuffer
put(IntBuffer src)
If there is insufficient space in this
bufferfor the remaining ints in the source buffer
IntBuffer public final IntBuffer
put(int[] src)
If there is
insufficient space in this buffer
LongBuffer public abstract LongBuffer
put(long l)
If this buffer's current position
is not smaller than its limit
LongBuffer public LongBuffer
put(LongBuffer src)
If there is insufficient space in this
bufferfor the remaining longs in the source buffer
LongBuffer public final LongBuffer
put(long[] src)
If there is
insufficient space in this buffer
ShortBuffer public abstract ShortBuffer
put(short s)
If this buffer's current position
is not smaller than its limit
ShortBuffer public ShortBuffer
put(ShortBuffer src)
If there is insufficient space in this
bufferfor the remaining shorts in the source buffer
ShortBuffer public final ShortBuffer
put(short[] src)
If there is
insufficient space in this buffer