Coder Social home page Coder Social logo

Comments (11)

domingoxx avatar domingoxx commented on May 25, 2024 9

同样遇到此问题, 诸位有解决办法吗。

昨天经过测试发现,在我这边发现了一个规律。

测试步骤如下:

  1. 开启容器热部署(某些容器是默认开启)
  2. 启动容器和应用
  3. 通过创建新文件或者删除文件触发热部署
  4. 在热部署重启过程中 重启zookeeper

在热部署重启过程中, zookeeper线程不会停止, 导致zookeeper还会不断重连,重连过程中如果找不到SetWatches类,则会抛出异常,之后就会不断的重试, 由于热部署之后,原来的zookeeper线程的classloader发生了变化, 无法再找到SetWatches,那么此过程就会一直持续下去。

现在尝试把热部署关闭掉看看效果。

from dubbo.

 avatar commented on May 25, 2024

这么重要的bug竟然没人解答?

from dubbo.

Xiaobaxi avatar Xiaobaxi commented on May 25, 2024

@liuluo129 tomcat版本多少,zookeeper版本多少?有没有应用系统自身的日志信息?

from dubbo.

jaychang9 avatar jaychang9 commented on May 25, 2024
java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/SetWatches
        at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:870)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
java.lang.NoClassDefFoundError:2016-05-13 10:42:17,854 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.10.3/192.168.10.3:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-13 10:42:17,854 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Socket connection established to 192.168.10.3/192.168.10.3:2181, initiating session
2016-05-13 10:42:17,854 [localhost-startStop-1-SendThread(192.168.10.3:2181)] WARN  [org.apache.zookeeper.ClientCnxn] - Session 0x154a3d0dcfc0005 for server 192.168.10.3/192.168.10.3:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/SetWatches
        at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:870)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2016-05-13 10:42:18,988 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.10.3/192.168.10.3:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-13 10:42:18,988 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Socket connection established to 192.168.10.3/192.168.10.3:2181, initiating session
2016-05-13 10:42:18,988 [localhost-startStop-1-SendThread(192.168.10.3:2181)] WARN  [org.apache.zookeeper.ClientCnxn] - Session 0x154a3d0dcfc0014 for server 192.168.10.3/192.168.10.3:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/SetWatches
        at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:870)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2016-05-13 10:42:19,284 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.10.3/192.168.10.3:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-13 10:42:19,284 [localhost-startStop-1-SendThread(192.168.10.3:2181)] INFO  [org.apache.zookeeper.ClientCnxn] - Socket connection established to 192.168.10.3/192.168.10.3:2181, initiating session
2016-05-13 10:42:19,284 [localhost-startStop-1-SendThread(192.168.10.3:2181)] WARN  [org.apache.zookeeper.ClientCnxn] - Session 0x154a3d0dcfc0005 for server 192.168.10.3/192.168.10.3:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/SetWatches
        at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:870)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)`

我也遇到了,还没找到解决方案 。。。jdk1.8.0_74 tomcat8.0.33

from dubbo.

zj4775 avatar zj4775 commented on May 25, 2024

有人解决这个问题了吗?我用的weblogic,jdk8

from dubbo.

ralf0131 avatar ralf0131 commented on May 25, 2024

The zookeeper thread is not stopped elegantly. We are looking at this issue recently.

from dubbo.

zyl704126612 avatar zyl704126612 commented on May 25, 2024

我这边也遇到了这个bug,有人建议重启服务,线上环境跑了很多的服务,我不可能去把所有服务重启啊!求大神赶快修复这个bug啊

from dubbo.

ralf0131 avatar ralf0131 commented on May 25, 2024

Please test using the latest master branch, a patch has been applies recently, see #1763

from dubbo.

ralf0131 avatar ralf0131 commented on May 25, 2024

This issue should be fixed from 2.6.3 onwards.

from dubbo.

maoxiaoxiong avatar maoxiaoxiong commented on May 25, 2024

@liuluo129

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

请问这个问题你在当前版本 解决了吗

from dubbo.

maoxiaoxiong avatar maoxiaoxiong commented on May 25, 2024

有人解决这个问题了吗?我用的weblogic,jdk8

你这个问题解决了吗 除了版本升级

from dubbo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.