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

Exception Thrown By:Cause
ClassMethod
ByteBuffer public abstract byte
get()
If the buffer's current
position is not smaller than its limit
ByteBuffer public ByteBuffer
get(byte[] dst)
If there are fewer
than length bytes remaining in this buffer  
ByteBuffer public abstract char
getChar()
If there are fewer
than two bytes remaining in this buffer
ByteBuffer public abstract short
getShort()
If there are fewer
than two bytes remaining in this buffer
ByteBuffer public abstract int
getInt()
If there are fewer
than four bytes remaining in this buffer
ByteBuffer public abstract long
getLong()
If there are fewer
than eight bytes remaining in this buffer
ByteBuffer public abstract float
getFloat()
If there are fewer
than four bytes remaining in this bufferput
ByteBuffer public abstract double
getDouble()
If there are fewer
than eight bytes remaining in this buffer
CharBuffer public abstract char
get()
If the buffer's current
position is not smaller than its
CharBuffer public CharBuffer
get(char[] dst)
If there are fewer
than length chars remaining in this buffer
CoderResult public void
throwException()
If this
object is UNDERFLOW
DoubleBuffer public abstract double
get()
If the buffer's current
position is not smaller than its limit
DoubleBuffer public DoubleBuffer
get(double[] dst)
If there are fewer
than length doubles remaining in this buffer  
FloatBuffer public abstract float
get()
If the buffer's current
position is not smaller than its limit.
FloatBuffer public FloatBuffer
get(float[] dst)
If there are fewer
than length floats remaining in this buffer 
IntBuffer public abstract int
get()
If the buffer's current
position is not smaller than its limit.
IntBuffer public IntBuffer
get(int[] dst)
If there are fewer
than length ints remaining in this buffer  
LongBuffer public abstract long
get()
If the buffer's current
position is not smaller than its
LongBuffer public LongBuffer
get(long[] dst)
If there are fewer
than length longs remaining in this buffer  
ShortBuffer public abstract short
get()
If the buffer's current
position is not smaller than its limit
ShortBuffer public ShortBuffer
get(short[] dst)
If there are fewer
than length shorts remaining in this buffer