io.netty.channel.ChannelPipelineException: com.yu.netty_esb.ServerHandler.RecvXmlHandler is not a @Sharable handler, so can't be added or removed multiple times.

写了一个netty服务端,从客户端发报文,第一次成功,当第二次在发送报文时报

 

 解决办法,在handler加@Sharable

 

posted @ 2022-04-28 11:42  会飞的猪仔  阅读(600)  评论(0)    收藏  举报