Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5699

IdleStateHandler cannot be shared across the channel

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-milestone1, 3.0.0-milestone2
    • Fix Version/s: 3.0
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I got this exception when I try to run some performance tests on cxf-rt-transport-http-netty-server.

      WARNING: Failed to initialize a channel. Closing: [id: 0x5d5c0987, /127.0.0.1:63183 => /127.0.0.1:9090]
      io.netty.channel.ChannelPipelineException: io.netty.handler.timeout.IdleStateHandler is not a @Sharable handler, so can't be added or removed multiple times.
      	at io.netty.channel.DefaultChannelPipeline.checkMultiplicity(DefaultChannelPipeline.java:461)
      	at io.netty.channel.DefaultChannelPipeline.addLast0(DefaultChannelPipeline.java:138)
      	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:131)
      	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:122)
      	at org.apache.cxf.transport.http.netty.server.NettyHttpServletPipelineFactory.getDefaulHttpChannelPipeline(NettyHttpServletPipelineFactory.java:154)
      	at org.apache.cxf.transport.http.netty.server.NettyHttpServletPipelineFactory.initChannel(NettyHttpServletPipelineFactory.java:200)
      	at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:70)
      	at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRegistered(DefaultChannelHandlerContext.java:159)
      	at io.netty.channel.DefaultChannelHandlerContext.fireChannelRegistered(DefaultChannelHandlerContext.java:145)
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:730)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:441)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:373)
      	at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:417)
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:366)
      	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
      	at java.lang.Thread.run(Thread.java:744)
      

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              njiang Willem Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: