为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

无价脂宝 2018-05-22 14:33:07
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)
查看完整描述

2 回答

已采纳
?
V还在路上

TA贡献1条经验 获得超2个赞

ch.pipeline().addLast("handler", new MyWebSoketHandler());

检查这个段代码是否正确

查看完整回答
2 反对 回复 2018-05-27
?
产品经理不是经理

TA贡献481条经验 获得超143个赞

 Duplicate handler name: aggregator

查看完整回答
1 反对 回复 2018-05-22
  • 2 回答
  • 0 关注
  • 4031 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信