IIUC, this exception can be thrown with tricky implementation of ByteBuffer - e.g. LinkedByteBuffer or something.