io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))

GitHub | Paulomart | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0
    samebug tip
    I tried to connect to a secure websocket insecurely (ws:// instead of wss://).
  2. 0

    Disconnect when using ProtocolLib

    GitHub | 4 months ago | Paulomart
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))
  3. 0

    GitHub comment 137#284536377

    GitHub | 3 months ago | PhanaticD
    io.netty.handler.codec.DecoderException: Error decoding packet class Team with contents: +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 41 08 43 41 43 45 42 34 39 31 00 08 43 41 43 45 |A.CACEB491..CACE| |00000010| 42 34 39 31 03 c2 a7 66 03 c2 a7 66 01 06 61 6c |B491...f...f..al| |00000020| 77 61 79 73 05 6e 65 76 65 72 ff 01 |ways.never.. | +--------+-------------------------------------------------+----------------+
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 137#282177920

    GitHub | 3 months ago | PhanaticD
    io.netty.handler.codec.DecoderException: Error decoding packet class Team with contents: +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 41 0f 42 42 42 42 42 42 42 42 42 42 42 42 32 33 |A.BBBBBBBBBBBB23| |00000010| 30 00 0f 42 42 42 42 42 42 42 42 42 42 42 42 32 |0..BBBBBBBBBBBB2| |00000020| 33 30 03 c2 a7 66 03 c2 a7 66 01 06 61 6c 77 61 |30...f...f..alwa| |00000030| 79 73 05 6e 65 76 65 72 ff 13 09 4a 75 6c 69 6f |ys.never...Julio| |00000040| 30 32 31 38 0c 46 6c 75 66 66 79 5f 42 65 61 72 |0218.Fluffy_Bear| |00000050| 73 0b 4d 45 47 41 4d 45 52 32 34 30 31 0d 4a 65 |s.MEGAMER2401.Je| |00000060| 73 73 69 63 61 5f 42 6c 61 64 65 06 54 41 53 31 |ssica_Blade.TAS1| |00000070| 32 37 0f 4c 75 6e 61 72 45 63 6c 69 70 73 65 37 |27.LunarEclipse7| |00000080| 36 37 |67 | +--------+-------------------------------------------------+----------------+
  6. 0

    GitHub comment 137#289332089

    GitHub | 2 months ago | PhanaticD
    io.netty.handler.codec.DecoderException: Error decoding packet class Team with contents: +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 41 08 46 46 43 44 42 36 33 34 00 08 46 46 43 44 |A.FFCDB634..FFCD| |00000010| 42 36 33 34 03 c2 a7 66 03 c2 a7 66 01 06 61 6c |B634...f...f..al| |00000020| 77 61 79 73 05 6e 65 76 65 72 ff 07 |ways.never.. | +--------+-------------------------------------------------+----------------+

  1. tyson925 6 times, last 9 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(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2515, widx: 2531, cap: 4096))

    at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
  2. Netty
    AbstractByteBuf.readByte
    1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1395)
    2. io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:687)
    2 frames
  3. net.md_5.bungee
    MinecraftDecoder.decode
    1. net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:108)
    2. net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:98)
    3. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:28)
    4. net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:10)
    4 frames
  4. Netty
    SingleThreadEventExecutor$5.run
    1. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    5. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
    6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    8. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    9. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
    10. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280)
    11. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396)
    12. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
    13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    16. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    18. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    19. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
    20. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    21. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
    22. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
    23. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    24. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
    25. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:651)
    26. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:574)
    27. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:488)
    28. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:450)
    29. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
    29 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame