启动course-edge-service报错

来源:3-13 开发课程EdgeService

慕粉1462372119

2018-06-25

报错信息如下:

[DUBBO] Failed to init remote service reference at filed courseService in class com.imooc.course.controller.CourseController, cause: Failed to check the status of the service com.imooc.course.service.ICourseService. No provider available for the service com.imooc.course.service.ICourseService from the url zookeeper://192.168.205.10:2181/com.alibaba.dubbo.registry.RegistryService?application=course-service&dubbo=2.5.3&interface=com.imooc.course.service.ICourseService&methods=courseList&pid=6000&side=consumer&timestamp=1529916851081 to the consumer 192.168.56.1 use dubbo version 2.5.3, dubbo version: 2.5.3, current host: 192.168.56.1


course-edge-service配置如下:

//img.mukewang.com/szimg/5b30af98000118c706960157.jpg

course-dubbo-service配置如下:

//img.mukewang.com/szimg/5b30afdc0001de0f07190384.jpg

docker装在centos虚拟机里,docker容器运行状态如下图:

//img.mukewang.com/szimg/5b30aed90001512415140184.jpg

写回答

2回答

刘果国

2018-06-26

这个错误是说dubbo服务端没有正常提供服务。需要先启动course-dubbo-service,然后看看启动日志是否正常。telnet一下端口看看是否可以连通

0
5
慕粉1462372119
非常感谢!
2018-07-02
共5条回复

慕粉1462372119

提问者

2018-07-02

已解决,course-dubbo-service里的@service注解引错包了

0
0

Docker+Kubernetes(k8s)微服务容器化实践

从开发到编排,快速,完整,深入的掌握微服务

2607 学习 · 607 问题

查看课程