[dubbo] dubbo No provider available for the service
2016-01-04 12:05
447 查看
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method queryTemplate in the service com.x.api.service.query.evaluate.TemplateMessageService. No provider available for the service com.x.api.service.query.evaluate.TemplateMessageService from registry 192.168.11.32:2181 on the consumer 192.168.11.228 using the dubbo version 2.5.3. Please check if the providers have been started and registered. 网上有人说是因为实体没有实现Serializable 接口,但是我实现了呀,服务端和客户端的配置也没错,就是报这个错,很纠结,后来找总监看了下,他说是我路径的问题,有点懵,后来他说是服务端接口的路径,客户端的接口要和它一样否则就会找不到消息的提供者,就报了No provider available for the service com.x.api.service.query.evaluate.TemplateMessageService from registry 192.168.11.32:2181 on the consumer 192.168.11.228 using the dubbo versio错误。
项目中
<dubbo:reference interface="com.xwolf.dubbo.dao.HelloDao" id="helloDao"/>
<!-- 声明需要暴露的服务接口 -->
<dubbo:service interface="com.xwolf.dubbo.dao.HelloDao" ref="helloDaoImpl" />
接口的路径和名称一定要完全相同,否则会抛出以上异常。
项目中
<dubbo:reference interface="com.xwolf.dubbo.dao.HelloDao" id="helloDao"/>
<!-- 声明需要暴露的服务接口 -->
<dubbo:service interface="com.xwolf.dubbo.dao.HelloDao" ref="helloDaoImpl" />
接口的路径和名称一定要完全相同,否则会抛出以上异常。
相关文章推荐
- Filestream/Windows Share导致Alwayson Failover失败
- LeetCode 219:Contains Duplicate II
- 简单使用 SSKeychain 存储密码
- NSLayoutConstraint 简单理解
- hadoop jps出现process information unavailable提示解决办法
- Fzuoj 2216 The Longest Straight 【二分 || 模拟】
- Saiku去掉登录模块
- Facebook人工智能负责人Yann LeCun谈深度学习的局限性
- QDU65 again and again(字典序暴力or字典树)
- 151219DuoTaiDemo
- 趣说游戏AI开发:对状态机的褒扬和批判
- [Android Pro] 网络流量安全测试工具Nogotofail
- VT-x is not available (VERR_VMX_NO_VMX) 的解决方案
- OC对象的retainCount(引用计数器)
- VMfailVaild 错误号
- 【science封面文章】Human-level concept learning through probabilistic program induction
- LeetCode之Climbing Stairs与斐波那契数列的联想
- KMP字符串模式匹配详解http://blog.csdn.net/lin_bei/article/details/1252686
- Develop--Training(六)Getting Started--Working with System Permissions
- POJ 2135 Farm Tour && HDU 2686 Matrix && HDU 3376 Matrix Again 费用流求来回最短路