You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "k3gu (GitHub)" <gi...@apache.org> on 2018/11/13 14:54:58 UTC

[GitHub] [incubator-dubbo] k3gu opened issue #2785: dubbo-demo failed to subscribe from zookeeper

### 1.dubbo-demo version:
dubbo-demo-2.7.0-SNAPSHOT
ps:git clone https://github.com/apache/incubator-dubbo.git

### 2.consumer configuration:
<dubbo:application name="demo-consumer"/>
<dubbo:registry address="zookeeper://192.168.0.104:2181"/>

### 3.zookeeper version: 3.4.10/3.4.12

### 4.errors:
```
idea console:
org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from registry 192.168.0.104:2181 on the consumer 192.168.0.104 using the dubbo version 2.7.0-SNAPSHOT. Please check if the providers have been started and registered.
	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:266)
	at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:57)
	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:242)
	at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
	at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:70)
	at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java)
	at org.apache.dubbo.demo.consumer.Consumer.main(Consumer.java:41)
```
```
zookeeper:
Unable to read additional data from client sessionid 0x10001ccc1cc000a, likely client has closed socket
```
### 5.others
```
a.provider connect to zookeeper successful.
b.Its successful to call provider.sayHello with consumer directly.
<dubbo:reference id="demoService" check="false" interface="org.apache.dubbo.demo.DemoService"-->
                     <!--timeout="2000" url="dubbo://localhost:8001"/>
```

Thanks for reading.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2785 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] k3gu closed issue #2785: dubbo-demo consumer failed to subscribe from zookeeper

Posted by "k3gu (GitHub)" <gi...@apache.org>.
[ issue closed by k3gu ]

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2785 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] k3gu commented on issue #2785: dubbo-demo consumer failed to subscribe from zookeeper

Posted by "k3gu (GitHub)" <gi...@apache.org>.
2.6.5 runs well.
```
<parent>
        <groupId>com.alibaba</groupId>
        <artifactId>dubbo-demo</artifactId>
        <version>2.6.5</version>
</parent>
```

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2785 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org