avatar

IllegalStateException Failed to check the status of the service com.itheima.service.UserService. No provider available for the service com.itheima.service.UserService from the url zookeeper //127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=health_backend&dubbo=2.6.0&interface=com.itheima.service.UserService&methods=findByUsername&pid=11244&register.ip=192.168.233.1&revision=1.0-SNAPSHOT&side=consumer&timestamp=1583916176766 to the consumer 192.168.233.1 use dubbo version 2.6.0

异常信息

1
2
ERROR Logger:225 -  [DUBBO] Failed to init remote service reference at filed userService in class com.itheima.security.SpringSecurityUserService, cause: Failed to check the status of the service com.itheima.service.UserService. No provider available for the service com.itheima.service.UserService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=health_backend&dubbo=2.6.0&interface=com.itheima.service.UserService&methods=findByUsername&pid=11244&register.ip=192.168.233.1&revision=1.0-SNAPSHOT&side=consumer&timestamp=1583916176766 to the consumer 192.168.233.1 use dubbo version 2.6.0, dubbo version: 2.6.0, current host: 192.168.233.1
java.lang.IllegalStateException: Failed to check the status of the service com.itheima.service.UserService. No provider available for the service com.itheima.service.UserService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=health_backend&dubbo=2.6.0&interface=com.itheima.service.UserService&methods=findByUsername&pid=11244&register.ip=192.168.233.1&revision=1.0-SNAPSHOT&side=consumer&timestamp=1583916176766 to the consumer 192.168.233.1 use dubbo version 2.6.0

异常原因

1
程序注解未加入或未重新编译

解决方法

1
检查程序代码或重新编译启动程序
文章作者: 123
文章链接: https://gao5805123.github.io/123/2020/05/04/IllegalStateException%20Failed%20to%20check%20the%20status%20of%20the%20service%20com.itheima.service.UserService/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 123
打赏
  • 微信
    微信
  • 支付宝
    支付宝