alibaba / dubbo-spring-boot-starter

Dubbo Spring Boot Starter
Apache License 2.0
2.1k stars 745 forks source link

@DubboConsumer 启动后spring boot不能完成初始化 #20

Closed feye closed 6 years ago

feye commented 7 years ago

ubuntu下有广播连接的问题

xionghuiCoder commented 7 years ago

hi, 启动时提示啥错误?

wuhulala commented 6 years ago

没有报错 !!!!

服务发布者/和消费者都是和demo的一致

系统环境是 WINDOWS10/jdk1.8.131

使用普通的dubbo消费者测试(xml的方式启动spring容器),日志打印没有服务提供者,

 com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method hello in the service com.alibaba.boot.api.IHelloService. No provider available for the service com.alibaba.boot.api.IHelloService from registry 224.5.6.7:1234 on the consumer 192.168.247.9 using the dubbo version 2.5.3. Please check if the providers have been started and registered.

provider日志最后几行

2017-12-05 22:10:22.016  INFO 17392 --- [egistryReceiver] c.a.d.r.multicast.MulticastRegistry      :  [DUBBO] Receive multicast message: register consumer://192.168.247.9/com.alibaba.boot.api.IHelloService?application=xxxxxx&category=consumers&check=false&dubbo=2.5.3&interface=com.alibaba.boot.api.IHelloService&methods=hello&pid=12384&side=consumer&timestamp=1512483021699 from /192.168.247.9:1234, dubbo version: 2.5.3, current host: 127.0.0.1
2017-12-05 22:10:22.017  INFO 17392 --- [egistryReceiver] c.a.d.r.multicast.MulticastRegistry      :  [DUBBO] Receive multicast message: subscribe consumer://192.168.247.9/com.alibaba.boot.api.IHelloService?application=xxxxxx&category=providers,configurators,routers&check=false&dubbo=2.5.3&interface=com.alibaba.boot.api.IHelloService&methods=hello&pid=12384&side=consumer&timestamp=1512483021699 from /192.168.247.9:1234, dubbo version: 2.5.3, current host: 127.0.0.1
2017-12-05 22:10:23.035  INFO 17392 --- [egistryReceiver] c.a.d.r.multicast.MulticastRegistry      :  [DUBBO] Receive multicast message: unregister consumer://192.168.247.9/com.alibaba.boot.api.IHelloService?application=xxxxxx&category=consumers&check=false&dubbo=2.5.3&interface=com.alibaba.boot.api.IHelloService&methods=hello&pid=12384&side=consumer&timestamp=1512483021699 from /192.168.247.9:1234, dubbo version: 2.5.3, current host: 127.0.0.1
2017-12-05 22:10:23.036  INFO 17392 --- [egistryReceiver] c.a.d.r.multicast.MulticastRegistry      :  [DUBBO] Receive multicast message: unregister consumer://192.168.247.9/com.alibaba.boot.api.IHelloService?application=xxxxxx&category=providers,configurators,routers&check=false&dubbo=2.5.3&interface=com.alibaba.boot.api.IHelloService&methods=hello&pid=12384&side=consumer&timestamp=1512483021699 from /192.168.247.9:1234, dubbo version: 2.5.3, current host: 127.0.0.1
2017-12-05 22:10:23.038  INFO 17392 --- [egistryReceiver] c.a.d.r.multicast.MulticastRegistry      :  [DUBBO] Receive multicast message: unsubscribe consumer://192.168.247.9/com.alibaba.boot.api.IHelloService?application=xxxxxx&category=providers,configurators,routers&check=false&dubbo=2.5.3&interface=com.alibaba.boot.api.IHelloService&methods=hello&pid=12384&side=consumer&timestamp=1512483021699 from /192.168.247.9:1234, dubbo version: 2.5.3, current host: 127.0.0.1
2017-12-05 22:13:10.812  INFO 17392 --- [nio-7001-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2017-12-05 22:13:10.813  INFO 17392 --- [nio-7001-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2017-12-05 22:13:10.835  INFO 17392 --- [nio-7001-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 22 ms
xionghuiCoder commented 6 years ago

hi,从日志没看出问题,建议debug调试下吧

xionghuiCoder commented 6 years ago

最新发布版@DubboConsumer调整为了@Reference,请知晓