2019-01-13 23:48:36.182 ERROR 6156 --- [dTimer-thread-1] c.a.dubbo.monitor.dubbo.DubboMonitor : [DUBBO] Unexpected error occur at send statistic, cause: No provider available from registry 127.0.0.1:2181 for service com.alibaba.dubbo.monitor.MonitorService on consumer 192.168.1.102 use dubbo version 2.6.5, please check status of providers(disabled, not registered or in blacklist)., dubbo version: 2.6.5, current host: 192.168.1.102
com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service com.alibaba.dubbo.monitor.MonitorService on consumer 192.168.1.102 use dubbo version 2.6.5, please check status of providers(disabled, not registered or in blacklist).
at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:577) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:74) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:277) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.common.bytecode.proxy1.collect(proxy1.java) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor.send(DubboMonitor.java:112) ~[dubbo-2.6.5.jar:2.6.5]
at com.alibaba.dubbo.monitor.dubbo.DubboMonitor$1.run(DubboMonitor.java:69) ~[dubbo-2.6.5.jar:2.6.5]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
检查消费方和提供服务方(即Server和Client),是否配置了监控中心,如果你没有配置监控中心,那么请注释掉如下监控中心的配置即可解决该异常
#dubbo.monitor.protocol=registry
2.如果你是在学习阶段,同时开启了服务方和调用方,那么可能会抛出如下异常:
java.net.BindException: Address already in use: bind 如果提示端口已经绑定,详细异常如下:
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_191]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_191]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_191]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_191]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:466) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
2019-01-14 00:07:28.017 WARN 19316 --- [ main] c.a.d.qos.protocol.QosProtocolWrapper : [DUBBO] Fail to start qos server: , dubbo version: 2.6.5, current host: 172.20.10.2
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_191]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_191]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_191]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_191]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:466) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-all-4.1.31.Final.jar:4.1.31.Final]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_191]
2019-01-14 00:07:28.030 INFO 19316 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Load registry store file C:\Users\Raven\.dubbo\dubbo-registry-boot-order-service-consumer-127.0.0.1:2181.cache, data: {dubboInterface.UserService=empty://192.168.1.102/dubboInterface.UserService?application=boot-order-service-consumer&category=configurators&dubbo=2.0.2&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19444&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&side=consumer×tamp=1547391870468 empty://192.168.1.102/dubboInterface.UserService?application=boot-order-service-consumer&category=routers&dubbo=2.0.2&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19444&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&side=consumer×tamp=1547391870468 empty://192.168.1.102/dubboInterface.UserService?application=boot-order-service-consumer&category=providers&dubbo=2.0.2&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19444&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&side=consumer×tamp=1547391870468, raven/dubboInterface.UserService:1.0.0=empty://127.0.0.1/dubboInterface.UserService?application=boot-order-service-consumer&category=configurators&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=18496&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&side=consumer×tamp=1547395477021 empty://127.0.0.1/dubboInterface.UserService?application=boot-order-service-consumer&category=routers&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=18496&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333&side=consumer×tamp=1547395477021 dubbo://127.0.0.1:20880/dubboInterface.UserService?anyhost=true&application=user-service-provider&bean.name=ServiceBean:dubboInterface.UserService&dubbo=2.0.2&generic=false&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19376&revision=1.0.0&side=provider×tamp=1547395460976&version=1.0.0, com.alibaba.dubbo.monitor.MonitorService=empty://192.168.1.102/com.alibaba.dubbo.monitor.MonitorService?application=boot-order-service-consumer&category=configurators&dubbo=2.0.2&interface=com.alibaba.dubbo.monitor.MonitorService&pid=6156&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333×tamp=1547394438884 empty://192.168.1.102/com.alibaba.dubbo.monitor.MonitorService?application=boot-order-service-consumer&category=routers&dubbo=2.0.2&interface=com.alibaba.dubbo.monitor.MonitorService&pid=6156&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333×tamp=1547394438884 empty://192.168.1.102/com.alibaba.dubbo.monitor.MonitorService?application=boot-order-service-consumer&category=providers&dubbo=2.0.2&interface=com.alibaba.dubbo.monitor.MonitorService&pid=6156&qos.accept.foreign.ip=false&qos.enable=true&qos.port=33333×tamp=1547394438884}, dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.071 INFO 19316 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Starting
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:zookeeper.version=3.4.9-1757313, built on 08/23/2016 06:50 GMT
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:host.name=Raven
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.version=1.8.0_191
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.vendor=Oracle Corporation
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.home=E:\Program Files\Java\jdk1.8.0_191\jre
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.class.path=E:\Program Files\Java\jdk1.8.0_191\jre\lib\resources.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\rt.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\jsse.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\jce.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\charsets.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\jfr.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\access-bridge-64.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\cldrdata.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\dnsns.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jaccess.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jfxrt.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\localedata.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\nashorn.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunec.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunjce_provider.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunmscapi.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunpkcs11.jar;E:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\zipfs.jar;D:\javaCode\dubboConsumer\target\classes;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.1.1.RELEASE\spring-boot-starter-web-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.1.1.RELEASE\spring-boot-starter-json-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.7\jackson-databind-2.9.7.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.7\jackson-core-2.9.7.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.7\jackson-datatype-jdk8-2.9.7.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.7\jackson-datatype-jsr310-2.9.7.jar;C:\Users\Raven\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.7\jackson-module-parameter-names-2.9.7.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.1.RELEASE\spring-boot-starter-tomcat-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.13\tomcat-embed-core-9.0.13.jar;C:\Users\Raven\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.13\tomcat-embed-el-9.0.13.jar;C:\Users\Raven\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.13\tomcat-embed-websocket-9.0.13.jar;C:\Users\Raven\.m2\repository\org\hibernate\validator\hibernate-validator\6.0.13.Final\hibernate-validator-6.0.13.Final.jar;C:\Users\Raven\.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;C:\Users\Raven\.m2\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;C:\Users\Raven\.m2\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-web\5.1.3.RELEASE\spring-web-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-beans\5.1.3.RELEASE\spring-beans-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-webmvc\5.1.3.RELEASE\spring-webmvc-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-aop\5.1.3.RELEASE\spring-aop-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-expression\5.1.3.RELEASE\spring-expression-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-starter\2.1.1.RELEASE\spring-boot-starter-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot\2.1.1.RELEASE\spring-boot-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.1.RELEASE\spring-boot-autoconfigure-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.1.1.RELEASE\spring-boot-starter-logging-2.1.1.RELEASE.jar;C:\Users\Raven\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\Raven\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\Raven\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.1\log4j-to-slf4j-2.11.1.jar;C:\Users\Raven\.m2\repository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar;C:\Users\Raven\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\Raven\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-core\5.1.3.RELEASE\spring-core-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-jcl\5.1.3.RELEASE\spring-jcl-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;C:\Users\Raven\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\Raven\.m2\repository\com\alibaba\boot\dubbo-spring-boot-starter\0.2.0\dubbo-spring-boot-starter-0.2.0.jar;C:\Users\Raven\.m2\repository\org\apache\zookeeper\zookeeper\3.4.9\zookeeper-3.4.9.jar;C:\Users\Raven\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\Raven\.m2\repository\io\netty\netty\3.10.5.Final\netty-3.10.5.Final.jar;C:\Users\Raven\.m2\repository\org\apache\curator\curator-framework\2.12.0\curator-framework-2.12.0.jar;C:\Users\Raven\.m2\repository\org\apache\curator\curator-client\2.12.0\curator-client-2.12.0.jar;C:\Users\Raven\.m2\repository\com\google\guava\guava\16.0.1\guava-16.0.1.jar;C:\Users\Raven\.m2\repository\com\alibaba\boot\dubbo-spring-boot-autoconfigure\0.2.0\dubbo-spring-boot-autoconfigure-0.2.0.jar;C:\Users\Raven\.m2\repository\com\alibaba\dubbo\2.6.5\dubbo-2.6.5.jar;C:\Users\Raven\.m2\repository\org\springframework\spring-context\5.1.3.RELEASE\spring-context-5.1.3.RELEASE.jar;C:\Users\Raven\.m2\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;C:\Users\Raven\.m2\repository\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;C:\Users\Raven\.m2\repository\com\alibaba\spring\spring-context-support\1.0.2\spring-context-support-1.0.2.jar;D:\javaCode\dubboInterface\target\classes;C:\Users\Raven\.m2\repository\io\netty\netty-all\4.1.31.Final\netty-all-4.1.31.Final.jar
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.library.path=E:\Program Files\Java\jdk1.8.0_191\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;E:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\MySQL\MySQL Server 8.0\bin;E:\Program Files\apache-tomcat-8.5.34\bin;E:\Program Files\apache-maven-3.6.0\bin;E:\Program Files\Git\cmd;E:\nvm;C:\Program Files\nodejs;I:\SDK\platform-tools;C:\Users\Raven\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Raven\AppData\Local\Programs\Python\Python37\;C:\Users\Raven\AppData\Local\Microsoft\WindowsApps;E:\nvm;C:\Program Files\nodejs;E:\Program Files\Microsoft VS Code\bin;E:\Program Files\PyCharm Community Edition 2018.3\bin;;I:\IntelliJ IDEA 2018.3.1\bin;;.
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.io.tmpdir=C:\Users\Raven\AppData\Local\Temp\
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.compiler=
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.name=Windows 10
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.arch=amd64
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.version=10.0
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.name=Raven
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.home=C:\Users\Raven
2019-01-14 00:07:28.079 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.dir=D:\javaCode\dubboConsumer
2019-01-14 00:07:28.080 INFO 19316 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@34b9fc7d
2019-01-14 00:07:28.091 INFO 19316 --- [127.0.0.1:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2019-01-14 00:07:28.092 INFO 19316 --- [127.0.0.1:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session
2019-01-14 00:07:28.105 INFO 19316 --- [127.0.0.1:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x1000485e4de0026, negotiated timeout = 40000
2019-01-14 00:07:28.114 INFO 19316 --- [ain-EventThread] o.a.c.f.state.ConnectionStateManager : State change: CONNECTED
2019-01-14 00:07:28.117 INFO 19316 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Register: consumer://172.20.10.2/dubboInterface.UserService?application=boot-order-service-consumer&category=consumers&check=false&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316&side=consumer×tamp=1547395646776, dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.138 INFO 19316 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Subscribe: consumer://172.20.10.2/dubboInterface.UserService?application=boot-order-service-consumer&category=providers,configurators,routers&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316&side=consumer×tamp=1547395646776, dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.150 INFO 19316 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Notify urls for subscribe url consumer://172.20.10.2/dubboInterface.UserService?application=boot-order-service-consumer&category=providers,configurators,routers&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316&side=consumer×tamp=1547395646776, urls: [dubbo://127.0.0.1:20880/dubboInterface.UserService?anyhost=true&application=user-service-provider&bean.name=ServiceBean:dubboInterface.UserService&dubbo=2.0.2&generic=false&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19376&revision=1.0.0&side=provider×tamp=1547395460976&version=1.0.0, empty://172.20.10.2/dubboInterface.UserService?application=boot-order-service-consumer&category=configurators&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316&side=consumer×tamp=1547395646776, empty://172.20.10.2/dubboInterface.UserService?application=boot-order-service-consumer&category=routers&default.version=1.0.0&dubbo=2.0.2&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316&side=consumer×tamp=1547395646776], dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.316 INFO 19316 --- [ main] c.a.d.remoting.transport.AbstractClient : [DUBBO] Successed connect to server /172.20.10.2:20880 from NettyClient 172.20.10.2 using dubbo version 2.6.5, channel is NettyChannel [channel=[id: 0xd3a1e0b3, /172.20.10.2:7710 => /172.20.10.2:20880]], dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.316 INFO 19316 --- [ main] c.a.d.remoting.transport.AbstractClient : [DUBBO] Start NettyClient Raven/172.20.10.2 connect to the server /172.20.10.2:20880, dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.358 INFO 19316 --- [ main] com.alibaba.dubbo.config.AbstractConfig : [DUBBO] Refer dubbo service dubboInterface.UserService from url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=boot-order-service-consumer&bean.name=ServiceBean:dubboInterface.UserService&check=false&default.version=1.0.0&dubbo=2.0.2&generic=false&group=raven&interface=dubboInterface.UserService&methods=getUserAddressList&pid=19316®ister.ip=172.20.10.2&remote.timestamp=1547395460976&revision=1.0.0&side=consumer×tamp=1547395646776&version=1.0.0, dubbo version: 2.6.5, current host: 172.20.10.2
2019-01-14 00:07:28.621 INFO 19316 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2019-01-14 00:07:28.870 INFO 19316 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2019-01-14 00:07:28.874 INFO 19316 --- [ main] rpc.DubboConsumerApplication : Started DubboConsumerApplication in 4.792 seconds (JVM running for 5.825)
消费者启动
解决方法:给后启动的一方配置如下信息修改端口号即可
dubbo.application.qos.enable=true
dubbo.application.qos.port=33333
dubbo.application.qos.accept.foreign.ip=false