dubbbo使用时候没有启动监控中心,不能配了监控地址。
1 | com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method collect in the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service com.alibaba.dubbo.monitor.MonitorService from registry localhost:2181 on the consumer 10.23.144.194 using the dubbo version 2.6.2. Please check if the providers have been started and registered. |
解决方案:
这是因为没有启动监控中心,却配了监控地址,把监控中心启动,或者把xml配置中的<dubbo:monitor protocol=”registry”>或properties配置中的dubbo.monitor.protocol=registry去掉,即可。