启动course-edge-service报错
来源:3-13 开发课程EdgeService
编号89757321
2019-01-09
所有功能开发完后,启动course-edge-service时报错:
java.lang.IllegalStateException: 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://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=course-service&dubbo=2.5.3&interface=com.imooc.course.service.ICourseService&methods=CourseList&pid=2168&side=consumer×tamp=1547048713151 to the consumer 172.22.152.129 use dubbo version 2.5.3
我查看了zookeeper的控制台输出:
2019-01-09 23:45:13,502 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@653] - Got user-level KeeperException when processing sessionid:0x10000418de40000 type:create cxid:0x10 zxid:0xd txntype:-1 reqpath:n/a Error Path:/dubbo/com.imooc.course.service.ICourseService Error:KeeperErrorCode = NodeExists for /dubbo/com.imooc.course.service.ICourseService
想问一下老师这是什么原因造成的?具体应该怎么修改?
2回答
-
dubbo服务端没注册上,检查一下服务端
022019-01-11 -
编号89757321
提问者
2019-01-10
原因已找到。错误在CourseServiceImpl类中@Service注解用的是dubbo类中的,不是Spring中的!!!一定要注意
com.alibaba.dubbo.config.annotation.Service00
相似问题