潋华清辉墨色成画 2020-06-08 23:02 采纳率: 0%
浏览 1155

zookeeper:java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest

springboot +dubbo+zookeeper,但在服务消费方启动项目报一下错误:

2020-06-08 22:54:58.268  INFO 19800 --- [           main] org.apache.zookeeper.ClientCnxn          : zookeeper.request.timeout value is 0. feature enabled=false
2020-06-08 22:54:58.280  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server 192.168.245.128/192.168.245.128:2181.
2020-06-08 22:54:58.280  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : SASL config status: Will not attempt to authenticate using SASL (unknown error)
2020-06-08 22:54:58.285  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /192.168.245.1:54394, server: 192.168.245.128/192.168.245.128:2181
2020-06-08 22:54:58.301  WARN 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Session 0x0 for sever 192.168.245.128/192.168.245.128:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.

java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest
    at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:992) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:345) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1262) ~[zookeeper-3.6.1.jar:3.6.1]
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.proto.ConnectRequest
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_121]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121]
    ... 3 common frames omitted

2020-06-08 22:54:58.316  INFO 19800 --- [           main] c.a.d.r.zookeeper.ZookeeperRegistry      :  [DUBBO] Register: consumer://172.17.190.241/com.wsf.springbootdubboconsumer.seivice.MessageHandlerService?application=dubbo-consumer&category=consumers&check=false&default.timeout=16000&dubbo=2.6.2&interface=com.wsf.springbootdubboconsumer.seivice.MessageHandlerService&methods=sentMessage&pid=19800&side=consumer&timestamp=1591628098134, dubbo version: 2.6.2, current host: 172.17.190.241
2020-06-08 22:54:59.784  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server 192.168.245.128/192.168.245.128:2181.
2020-06-08 22:54:59.784  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : SASL config status: Will not attempt to authenticate using SASL (unknown error)
2020-06-08 22:54:59.785  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /192.168.245.1:54395, server: 192.168.245.128/192.168.245.128:2181
2020-06-08 22:54:59.785  WARN 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Session 0x0 for sever 192.168.245.128/192.168.245.128:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.

java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest
    at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:992) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:345) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1262) ~[zookeeper-3.6.1.jar:3.6.1]
  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2020-09-02 09:42
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀