java.lang.IndexOutOfBoundsException: Not enough readable bytes - Need 4, maximum is 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by vetss
, 1 year ago
Not enough readable bytes - Need 4, maximum is 0
via DataStax JIRA by Vishy Kasar, 1 year ago
Not enough readable bytes - Need 4, maximum is 0
via DataStax JIRA by Vishy Kasar, 1 year ago
Not enough readable bytes - Need 4, maximum is 0
via GitHub by vitalidze
, 2 years ago
Not enough readable bytes - Need 2, maximum is 0
via GitHub by shyamraj242
, 8 months ago
Not enough readable bytes - Need 132, maximum is 120
via Google Groups by Shyam Gurram, 11 months ago
java.lang.IndexOutOfBoundsException: Not enough readable bytes - Need 4, maximum is 0
at org.jboss.netty.buffer.AbstractChannelBuffer.checkReadableBytes(AbstractChannelBuffer.java:661)
at org.jboss.netty.buffer.AbstractChannelBuffer.readInt(AbstractChannelBuffer.java:273)
at org.apache.cassandra.transport.CBUtil.readValue(CBUtil.java:248)
at org.apache.cassandra.transport.messages.ExecuteMessage$1.decode(ExecuteMessage.java:49)
at org.apache.cassandra.transport.messages.ExecuteMessage$1.decode(ExecuteMessage.java:41)
at org.apache.cassandra.transport.Message$ProtocolDecoder.decode(Message.java:210)
at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:66)
at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:68)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.