Closed ghost closed 6 years ago
dubbo的配置已改成
生产者配置是 <dubbo:service retries="2" interface="com.ueq.module.system.api.sysquerysql.SysQuerysqlService" ref="sysQuerysqlService" protocol="dubbo" cluster="failfast"/>
客户端配置是
我是使用spring-boot的加dubbo配置
dubbo的pom配置是
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.9</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.20.0-GA</version>
</dependency>
<dependency>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<version>3.2.5.Final</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.0.35.Final</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<version>0.2</version>
</dependency>
-->
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
<version>0.42</version>
</dependency>
<!--
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<version>4.0.51</version>
</dependency>
-->
</dependencies>
Are you still getting this error?
I believe this issue has been solved.
是的,到2.6.1之前就改成默认Zookeeper客户端是Curator了。你可以看下Github上各个Release的说明,那上面有,不在文档里
这个问题我解决了。注意curator和zk的版本配合。我zk用3.4.x,curator使用2.13.0没有问题。再网上升级就是卡在ConnectionStateManager -State change: CONNECTED
原来是使用dubbo的2.5.6的版本,用zkclient进行连接,是能正常启动及运行的,但是在文件上传的时候报rpc错误,看到2.6.1版本是支持kryo的序列化,升级后启动就出现以下问题,(如下面的问题),到了org.apache.curator.framework.state.ConnectionStateManager -State change: CONNECTED 这一行,就没办法继续往下走了,请问这个问题是怎么解决的?