Comments (11)
同样遇到此问题, 诸位有解决办法吗。
昨天经过测试发现,在我这边发现了一个规律。
测试步骤如下:
- 开启容器热部署(某些容器是默认开启)
- 启动容器和应用
- 通过创建新文件或者删除文件触发热部署
- 在热部署重启过程中 重启zookeeper
在热部署重启过程中, zookeeper线程不会停止, 导致zookeeper还会不断重连,重连过程中如果找不到SetWatches类,则会抛出异常,之后就会不断的重试, 由于热部署之后,原来的zookeeper线程的classloader发生了变化, 无法再找到SetWatches,那么此过程就会一直持续下去。
现在尝试把热部署关闭掉看看效果。
from dubbo.
这么重要的bug竟然没人解答?
from dubbo.
@liuluo129 tomcat版本多少,zookeeper版本多少?有没有应用系统自身的日志信息?
from dubbo.
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.
有人解决这个问题了吗?我用的weblogic,jdk8
from dubbo.
The zookeeper thread is not stopped elegantly. We are looking at this issue recently.
from dubbo.
我这边也遇到了这个bug,有人建议重启服务,线上环境跑了很多的服务,我不可能去把所有服务重启啊!求大神赶快修复这个bug啊
from dubbo.
Please test using the latest master branch, a patch has been applies recently, see #1763
from dubbo.
This issue should be fixed from 2.6.3 onwards.
from dubbo.
java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/SetWatches
请问这个问题你在当前版本 解决了吗
from dubbo.
有人解决这个问题了吗?我用的weblogic,jdk8
你这个问题解决了吗 除了版本升级
from dubbo.
Related Issues (20)
- [Bug] Non-idempotent unit test `ClassGeneratorTest.testMain`
- [Bug] In Triple protocol , parameter retries does not take effect HOT 1
- [Bug] spring boot yml configuration,The qos.enable configuration is not effective, but the qos.port configuration is effective HOT 1
- [Bug] Dubbo 版本 3.2.2 JDK 版本 17 使用 tolist 报错 HOT 1
- [Bug] ContextHolderAuthenticationResolverFilter序列化异常 HOT 2
- [Bug] The application built using native image failed to start.I need to manually modify reflect-config. json of application.dubbo version: 3.3.0-beta.2
- [Bug] Triple default timeout is inconsistent with Dubbo HOT 4
- [Bug] nacos tests timeout and dubbo-samples-test-13787 caseSpecificVersion led to the failure of the integration tests HOT 3
- [Bug] Dubbo 3.2.11 dubbo-metadata-report-etcd作为元数据中心报错 HOT 1
- 修改dubbo.application.name metaService 旧的记录还在 HOT 1
- [Bug] An error occurred when adding the extension dubco-metadata-report-etcd HOT 4
- [Bug] triple远程调用,连接异常重连,导致客户端阻塞直到超时 HOT 1
- [Bug] Build failed after relying on version 3.2.11 or later HOT 4
- [Bug] docker dubbo cluster broadcast not working HOT 1
- [Bug] Non-idempotent unit tests (follow-up of #14134)
- [Bug] In the example dubco-samples-spring-boot-trace-skywalking, the run fails HOT 2
- No provider available from registry RegistryDirectory(registry: 127.0.0.1:8848) HOT 1
- Dubbo 3.2 throws an error directly upon startup HOT 4
- [Bug] override url with configurator from "service-name.configurators" in interface mode not as expected HOT 10
- The matching wildcard is strict, but no declaration can be found for element 'dubbo:consumer'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo.