May 22, 2018 2:32:14 PM io.netty.channel.ChannelInitializer channelRegisteredWARNING: Failed to initialize a channel. Closing: [id: 0x0055e274, /0:0:0:0:0:0:0:1:58578 => /0:0:0:0:0:0:0:1:9999]java.lang.IllegalArgumentException: Duplicate handler name: aggregator at io.netty.channel.DefaultChannelPipeline.checkDuplicateName(DefaultChannelPipeline.java:949) at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:141) at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:130) at com.netty.MyWebSocketChannelHandler.initChannel(MyWebSocketChannelHandler.java:21) at com.netty.MyWebSocketChannelHandler.initChannel(MyWebSocketChannelHandler.java:1) at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:69) at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelRegisteredNow(ChannelHandlerInvokerUtil.java:30) at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRegistered(DefaultChannelHandlerInvoker.java:49) at io.netty.channel.DefaultChannelHandlerContext.fireChannelRegistered(DefaultChannelHandlerContext.java:285) at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) at io.netty.channel.ChannelHandlerInvokerUtil.invokeChannelRegisteredNow(ChannelHandlerInvokerUtil.java:30) at io.netty.channel.DefaultChannelHandlerInvoker.invokeChannelRegistered(DefaultChannelHandlerInvoker.java:49) at io.netty.channel.DefaultChannelHandlerContext.fireChannelRegistered(DefaultChannelHandlerContext.java:285) at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:801) at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:427) at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:369) at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:403) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:318) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:794) at java.lang.Thread.run(Thread.java:748)
添加回答
举报
0/150
提交
取消