[ 
https://issues.apache.org/jira/browse/CXF-5699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang resolved CXF-5699.
-------------------------------

    Resolution: Fixed

Applied the patch into cxf master branch.

> IdleStateHandler cannot be shared across the channel
> ----------------------------------------------------
>
>                 Key: CXF-5699
>                 URL: https://issues.apache.org/jira/browse/CXF-5699
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 3.0.0-milestone1, 3.0.0-milestone2
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 3.0.0
>
>
> I got this exception when I try to run some performance tests on 
> cxf-rt-transport-http-netty-server.
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to