1. 程式人生 > >Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

拉分支配專案環境,Tomcat啟動報錯如下:

 

2018-11-05 16:06:49,837 WARN  [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

原因:zk連線地址錯誤,檢查發現所有provider的zk地址埠都正確,但是漏了restful專案的zk地址配置沒改,改過來就好了。

zookeeperAddr=zookeeper://127.0.0.1:2181