readerIndex(0) + length(1) exceeds writerIndex(0)

Hi, I am getting below exception for an app which connects to couchbase db.can anyone tell what is the cause of this ?
com.couchbase.client.core.CouchbaseException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): PooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 256)