服务端报错。。。纠结好久。。。跪求解决。。

May 22, 2018 2:32:14 PM io.netty.channel.ChannelInitializer channelRegistered

WARNING: 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)


无价脂宝
浏览 4032回答 2
2回答

V还在路上

ch.pipeline().addLast("handler", new MyWebSoketHandler());检查这个段代码是否正确

产品经理不是经理

 Duplicate handler name: aggregator
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java