码上敲享录 > Zookeeper常见问题解答 > No provider available for the service xxx from the url zookeeper://134.175.155.125:2181

No provider available for the service xxx from the url zookeeper://134.175.155.125:2181

上一章章节目录下一章 2021-03-10已有946人阅读 评论(0)

No provider available for the service xxx from the url zookeeper://134.175.155.125:2181


解决方法:

启动消费者时报错如下:

Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.example.dubbocclient.ProviderService. No provider available for the service com.example.dubbocclient.ProviderService from the url zookeeper://134.175.155.125:2181/org.apache.dubbo.registry.RegistryService?application=service-consumer&dubbo=2.0.2&interface=com.example.dubbocclient.ProviderService&lazy=false&methods=add,get,upd,del&pid=12024&qos.enable=false&register.ip=10.17.48.131&release=2.7.3&side=consumer&sticky=false&timestamp=1615341536236 to the consumer 10.17.48.131 use dubbo version 2.7.3


后来发现消费者的调用接口@Reference必须要和服务提供者的接口包的路径一致才行


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交