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

GitHub | wuxingzhong | 4 months ago
  1. 0

    The same client sometimes appear : Error during data processing. why?

    GitHub | 4 months ago | wuxingzhong
    java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
  2. 0

    Client disconnecting when using Polling - IndexOutOfBoundsException

    GitHub | 7 months ago | Kenvelo90
    java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
  3. 0

    IndexOutOfBoundsException

    GitHub | 10 months ago | evgeny-pasynkov
    java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(4): CompositeByteBuf(ridx: 0, widx: 4, cap: 4, components=1)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Collector stops working on Windows server 2k12 with exception

    GitHub | 11 months ago | renapu
    java.lang.IndexOutOfBoundsException: readerIndex(0) + length(174) exceeds writerIndex(160): CompositeByteBuf(ridx: 0, widx: 160, cap: 160, components=1)
  6. 0

    [Netty 4 CR2]Got exception when closing channel by using user-defined encoder and decoder

    Stack Overflow | 4 years ago | Michael
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(4) exceeds writerIndex(0): PooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 4096)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Netty
      AbstractByteBuf.bytesBefore
      1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1346)
      2. io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1340)
      3. io.netty.buffer.AbstractByteBuf.bytesBefore(AbstractByteBuf.java:1161)
      3 frames
    3. NettySocketIO
      InPacketHandler.channelRead0
      1. com.corundumstudio.socketio.protocol.PacketDecoder.decodePackets(PacketDecoder.java:122)
      2. com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:65)
      3. com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:36)
      3 frames
    4. Netty
      AbstractChannelHandlerContext.invokeChannelRead
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
      3. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:145)
      6. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
      7. io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
      8. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:83)
      9. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:154)
      10. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:354)
      10 frames