io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 121

GitHub | alekso56 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Fun bad packet ids and indexoutofbounds

    GitHub | 6 months ago | alekso56
    io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 121

    Root Cause Analysis

    1. java.io.IOException

      Bad packet id 121

      at protocolsupport.protocol.packet.v_1_10.PacketDecoder.decode()
    2. protocolsupport.protocol.packet
      PacketDecoder.decode
      1. protocolsupport.protocol.packet.v_1_10.PacketDecoder.decode(PacketDecoder.java:30)
      1 frame
    3. protocolsupport.protocol.pipeline
      WrappedDecoder.decode
      1. protocolsupport.protocol.pipeline.wrapped.WrappedDecoder.decode(WrappedDecoder.java:47)
      1 frame
    4. Netty
      ByteToMessageDecoder.channelInactive
      1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249)
      2. io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:205)
      2 frames
    5. protocolsupport.protocol.pipeline
      WrappedDecoder.channelInactive
      1. protocolsupport.protocol.pipeline.wrapped.WrappedDecoder.channelInactive(WrappedDecoder.java:69)
      1 frame
    6. Netty
      ChannelInboundHandlerAdapter.channelInactive
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:233)
      2. io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
      3. io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:228)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:233)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
      6. io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
      6 frames
    7. protocolsupport.protocol.pipeline
      SimpleReadTimeoutHandler.channelInactive
      1. protocolsupport.protocol.pipeline.timeout.SimpleReadTimeoutHandler.channelInactive(SimpleReadTimeoutHandler.java:33)
      1 frame
    8. Netty
      SingleThreadEventExecutor$2.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:233)
      2. io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
      3. io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:769)
      4. io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:567)
      5. io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
      6. io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268)
      7. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      7 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame