io.netty.handler.codec.DecoderException: java.nio.BufferUnderflowException

GitHub | minecraftkeba | 8 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. 1

    Error after connecting to Server

    GitHub | 8 months ago | minecraftkeba
    io.netty.handler.codec.DecoderException: java.nio.BufferUnderflowException

    Root Cause Analysis

    1. java.nio.BufferUnderflowException

      No message provided

      at java.nio.ShortBuffer.get()
    2. Java RT
      ShortBuffer.get
      1. java.nio.ShortBuffer.get(Unknown Source)
      1 frame
    3. org.spacehq.mc
      ServerChunkDataPacket.read
      1. org.spacehq.mc.protocol.util.NetUtil.dataToChunks(NetUtil.java:190)
      2. org.spacehq.mc.protocol.packet.ingame.server.world.ServerChunkDataPacket.read(ServerChunkDataPacket.java:109)
      2 frames
    4. org.spacehq.packetlib
      TcpPacketCodec.decode
      1. org.spacehq.packetlib.tcp.TcpPacketCodec.decode(TcpPacketCodec.java:41)
      1 frame
    5. Netty
      ForkJoinWorkerThread.run
      1. io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)
      2. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:316)
      3. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:230)
      4. io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
      5. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:84)
      6. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:153)
      7. io.netty.channel.PausableChannelEventExecutor.invokeChannelRead(PausableChannelEventExecutor.java:86)
      8. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:389)
      9. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:243)
      10. io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
      11. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:84)
      12. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:153)
      13. io.netty.channel.PausableChannelEventExecutor.invokeChannelRead(PausableChannelEventExecutor.java:86)
      14. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:389)
      15. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:243)
      16. io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
      17. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:84)
      18. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:153)
      19. io.netty.channel.PausableChannelEventExecutor.invokeChannelRead(PausableChannelEventExecutor.java:86)
      20. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:389)
      21. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:243)
      22. io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
      23. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:84)
      24. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:153)
      25. io.netty.channel.PausableChannelEventExecutor.invokeChannelRead(PausableChannelEventExecutor.java:86)
      26. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:389)
      27. io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:149)
      28. io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelReadNow(ChannelHandlerInvokerUtil.java:84)
      29. io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRead(DefaultChannelHandlerInvoker.java:153)
      30. io.netty.channel.PausableChannelEventExecutor.invokeChannelRead(PausableChannelEventExecutor.java:86)
      31. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:389)
      32. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:956)
      33. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:127)
      34. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:514)
      35. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:471)
      36. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:385)
      37. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:351)
      38. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      39. io.netty.util.internal.chmv8.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1412)
      40. io.netty.util.internal.chmv8.ForkJoinTask.doExec(ForkJoinTask.java:280)
      41. io.netty.util.internal.chmv8.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:877)
      42. io.netty.util.internal.chmv8.ForkJoinPool.scan(ForkJoinPool.java:1706)
      43. io.netty.util.internal.chmv8.ForkJoinPool.runWorker(ForkJoinPool.java:1661)
      44. io.netty.util.internal.chmv8.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:126)
      44 frames