当前位置:   article > 正文

ES 9300 Netty jar冲突_send message failed [channel: netty4tcpchannel{loc

send message failed [channel: netty4tcpchannel{localaddress=0.0.0.0/0.0.0.0:
  1. [2020-01-13T16:12:24,691][WARN ][o.e.t.n.Netty4Transport  ] [yq1] send message failed [channel: NettyTcpChannel{localAddress=0.0.0.0/0.0.0.0:9300, remoteAddress=/192.168.251.205:50072}]
  2. java.io.IOException: Connection reset by peer
  3.     at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:?]
  4.     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:?]
  5.     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:?]
  6.     at sun.nio.ch.IOUtil.write(IOUtil.java:51) ~[?:?]
  7.     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) ~[?:?]
  8.     at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:388) ~[netty-transport-4.1.16.Final.jar:4.1.16.Final]
  9.     at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:934) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  10.     at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.forceFlush(AbstractNioChannel.java:368) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  11.     at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:639) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  12.     at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  13.     at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  14.     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) [netty-transport-4.1.16.Final.jar:4.1.16.Final]
  15.     at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-common-4.1.16.Final.jar:4.1.16.Final]
  16.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]

 

发现是netty相关问题,查看程序pom文件中的netty依赖版本如下

  1. <dependencyManagement>
  2.     <dependencies>
  3.         <dependency>
  4.             <groupId>io.netty</groupId>
  5.             <artifactId>netty-all</artifactId>
  6.             <version>4.1.38.Final</version>
  7.         </dependency>
  8.     </dependencies>
  9. </dependencyManagement>


错误中提示netty版本为4.1.16.Final,与依赖中版本不一致,

解决办法 :把pom文件中依赖注释掉
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/457578
推荐阅读
相关标签
  

闽ICP备14008679号