io.netty.util.IllegalReferenceCountException: refCnt: 0

Stack Overflow | Erkan Erol | 1 month 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

    io.netty.util.IllegalReferenceCountException: refCnt: 0 in Netty

    Stack Overflow | 1 month ago | Erkan Erol
    io.netty.util.IllegalReferenceCountException: refCnt: 0
  2. 0

    Registering mock client fails with DEBUG logging on

    GitHub | 9 months ago | StuSchrader
    java.lang.IndexOutOfBoundsException: index: 16, length: 16 (expected: range(0, 16))
  3. 0

    Netty 4.0.41.Final io.netty.handler.codec.DecoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0

    GitHub | 5 months ago | JuKu
    io.netty.handler.codec.DecoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Weird websocket client behaviour with pooled allocator

    GitHub | 1 year ago | lexek
    io.netty.handler.codec.DecoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0
  6. 0

    IndexOutOfBoundsException

    GitHub | 1 year ago | mineyannik
    java.lang.IndexOutOfBoundsException: writerIndex(4) + minWritableBytes(2) exceeds maxCapacity(5): SlicedAbstractByteBuf(ridx: 1, widx: 4, cap: 5/5, unwrapped: PooledUnsafeDirectByteBuf(ridx: 7, widx: 43, cap: 43))

    1 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. io.netty.util.IllegalReferenceCountException

      refCnt: 0

      at io.netty.buffer.AbstractByteBuf.ensureAccessible()
    2. Netty
      AbstractByteBuf.toString
      1. io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1407)
      2. io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1353)
      3. io.netty.buffer.PooledUnsafeDirectByteBuf.internalNioBuffer(PooledUnsafeDirectByteBuf.java:331)
      4. io.netty.buffer.ByteBufUtil.decodeString(ByteBufUtil.java:614)
      5. io.netty.buffer.AbstractByteBuf.toString(AbstractByteBuf.java:1213)
      6. io.netty.buffer.AbstractByteBuf.toString(AbstractByteBuf.java:1208)
      6 frames
    3. com.netas.sv
      InboundPrinterHandler.channelRead
      1. com.netas.sv.proxy.InboundPrinterHandler.channelRead(InboundPrinterHandler.java:16)
      1 frame
    4. Netty
      AbstractChannelHandlerContext.fireChannelRead
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
      3 frames
    5. com.netas.sv
      HexDumpProxyFrontendHandler.channelRead
      1. com.netas.sv.proxy.HexDumpProxyFrontendHandler.channelRead(HexDumpProxyFrontendHandler.java:67)
      1 frame
    6. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
      4. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
      7. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      8. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      9. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:651)
      10. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:574)
      11. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:488)
      12. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:450)
      13. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      14. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      14 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame