warriorSL2016 commented on issue #947: fix: 运行demo的时候,连接无线网,默认会获取IPv6 地址,导致报错 URL: https://github.com/apache/incubator-dubbo/pull/947#issuecomment-382391000 我也遇到这个恶心的问题了, 使用 <dubbo:registry address="multicast://224.5.6.7:1234"/>, 运行官网实例的dubbo-demo项目, 并且还是使用提示的使用debug,或者配置-Djava.net.preferIPv4Stack=true, 防止使用ipv6, 服务方能正常启动, 但是消费方根本就找不到服务, 请给出解释, 浪费了很长时间....错误栈如下: com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.alibaba.dubbo.demo.DemoService. No provider available for the service com.alibaba.dubbo.demo.DemoService from registry 224.5.6.7:1234 on the consumer 192.168.2.110 using the dubbo version 2.0.0. Please check if the providers have been started and registered. at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:252) at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:55) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:233) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:70) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:51) at com.alibaba.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) at com.alibaba.dubbo.demo.consumer.Consumer.main(Consumer.java:35)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
