io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(96) + length(1) exceeds writerIndex(96): SlicedAbstractByteBuf(ridx: 96, widx: 96, cap: 96/96, unwrapped: UnpooledUnsafeDirectByteBuf(ridx: 100, widx: 100, cap: 65536))

GitHub | slfritchie | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NettClientRouter decoder: readerIndex(96) + length(1) exceeds writerIndex(96)

    GitHub | 7 months ago | slfritchie
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(96) + length(1) exceeds writerIndex(96): SlicedAbstractByteBuf(ridx: 96, widx: 96, cap: 96/96, unwrapped: UnpooledUnsafeDirectByteBuf(ridx: 100, widx: 100, cap: 65536))
  2. 0

    GitHub comment 21#177370001

    GitHub | 1 year ago | Spurlex
    java.lang.IndexOutOfBoundsException: readerIndex(5) + length(1) exceeds writerIndex(5): PooledUnsafeDirectByteBuf(ridx: 5, widx: 5, cap: 5)
  3. 0

    During PvP, players get kicked to the server lobby without errors in chat.

    GitHub | 1 year ago | BoiaFaus
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): SlicedAbstractByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 64))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 27#181209443

    GitHub | 1 year ago | L4BORG
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): PooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 0)
  6. 0

    spigot setSpectatortarget() kicks player to lobby

    GitHub | 1 year ago | jjacobson
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): SlicedAbstractByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 64))

  1. tyson925 6 times, last 7 months ago
4 unregistered visitors
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(96) + length(1) exceeds writerIndex(96): SlicedAbstractByteBuf(ridx: 96, widx: 96, cap: 96/96, unwrapped: UnpooledUnsafeDirectByteBuf(ridx: 100, widx: 100, cap: 65536))

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
  2. Netty
    AbstractByteBuf.readByte
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1178)
    2. io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:587)
    2 frames
  3. org.corfudb.protocols
    NettyCorfuMessageDecoder.decode
    1. org.corfudb.protocols.wireprotocol.LogUnitReadResponseMsg.fromBuffer(LogUnitReadResponseMsg.java:150)
    2. org.corfudb.protocols.wireprotocol.CorfuMsg.deserialize(CorfuMsg.java:166)
    3. org.corfudb.protocols.wireprotocol.NettyCorfuMessageDecoder.decode(NettyCorfuMessageDecoder.java:20)
    3 frames
  4. Netty
    SingleThreadEventExecutor$2.run
    1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:387)
    2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)
    3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)
    4. io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)
    5. io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:283)
    6. io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
    7. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
    7 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame