io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)

GitHub | Underbalanced | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    SSLHandler Removal Exceptions

    GitHub | 5 months ago | Underbalanced
    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      readerIndex(16) + length(770414) exceeds writerIndex(31): PooledUnsafeDirectByteBuf(ridx: 16, widx: 31, cap: 512)

      at io.netty.buffer.AbstractByteBuf.checkReadableBytes0()
    2. Netty
      AdvancedLeakAwareByteBuf.readBytes
      1. io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1395)
      2. io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1389)
      3. io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:850)
      4. io.netty.buffer.WrappedByteBuf.readBytes(WrappedByteBuf.java:655)
      5. io.netty.buffer.AdvancedLeakAwareByteBuf.readBytes(AdvancedLeakAwareByteBuf.java:502)
      5 frames
    3. com.freeuniversegames.general
      NetworkFileEncoderDecoder.read
      1. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeArray(VLQDecoder.java:199)
      2. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeString(VLQDecoder.java:140)
      3. com.freeuniversegames.general.general_eight.netty.variant.VLQDecoder.unsafeDecodeString(VLQDecoder.java:162)
      4. com.freeuniversegames.general.general_eight.netty.variant.NetworkFileEncoderDecoder.readMetaData(NetworkFileEncoderDecoder.java:128)
      5. com.freeuniversegames.general.general_eight.netty.variant.NetworkFileEncoderDecoder.read(NetworkFileEncoderDecoder.java:146)
      5 frames
    4. com.freeuniversegames.infastructure
      FileServer$1$2.decode
      1. com.freeuniversegames.infastructure.development_file_server.FileServer$1$2.decode(FileServer.java:253)
      1 frame
    5. Netty
      ForkJoinWorkerThread.run
      1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
      2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      6. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
      7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      10. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      13. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      14. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      15. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
      17. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
      18. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
      19. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      20. io.netty.util.internal.chmv8.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1412)
      21. io.netty.util.internal.chmv8.ForkJoinTask.doExec(ForkJoinTask.java:280)
      22. io.netty.util.internal.chmv8.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:877)
      23. io.netty.util.internal.chmv8.ForkJoinPool.scan(ForkJoinPool.java:1711)
      24. io.netty.util.internal.chmv8.ForkJoinPool.runWorker(ForkJoinPool.java:1666)
      25. io.netty.util.internal.chmv8.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:126)
      25 frames