java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)

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 wuxingzhong
, 1 year ago
readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
via GitHub by evgeny-pasynkov
, 1 year ago
readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
via GitHub by Kenvelo90
, 1 year ago
readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
via GitHub by haxpor
, 5 months ago
readerIndex(19) + length(1) exceeds writerIndex(19): UnpooledUnsafeHeapByteBuf(ridx: 19, widx: 19, cap: 19)
via Stack Overflow by Behaviour Mono
, 3 days ago
readerIndex(17) + length(1) exceeds writerIndex(17): PooledUnsafeDirectByteBuf(ridx: 17, widx: 17, cap: 17)
via GitHub by chylex
, 5 months ago
readerIndex(2) + length(1) exceeds writerIndex(2): PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 2)
java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1346)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1340)
at io.netty.buffer.AbstractByteBuf.bytesBefore(AbstractByteBuf.java:1161)
at com.corundumstudio.socketio.protocol.PacketDecoder.decodePackets(PacketDecoder.java:122)
at com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:65)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:145)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)

Users with the same issue

6 times, 1 year ago
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.