1.出现RpcException: Failed to invoke the method post in the service com.xxx.xxx.xxx异常怎么办?
表示调用失败
1.检查网络是否正常 ping xxx.xxx.xxx.xxx
2.检查连接是否存在
netstat -anp | grep xxx.xxx.xxx.xxc


2.出现RpcException: No provider available for remote service异常怎么办?
表示没有可用的服务提供者,

1. 检查连接的注册中心是否正确
2. 到注册中心查看相应的服务提供者是否存在(通常可以直接访问dubbo控制台进行服务是否存在的查询)
3. 检查服务提供者是否正常运行
4.检查提供者和消费者的version是否一致
5.检查提供者和消费者的group是否一致

 

3.出现调用超时com.alibaba.dubbo.remoting.TimeoutException异常怎么办?
1.通常是业务处理太慢,可以找对应的服务负责人咨询、
2.可在服务提供方执行:jstack PID > jstack.log 分析线程都卡在哪个方法调用上,这里就是慢的原因。
3.如果不能调优性能,请将timeout设大。

 

4.出现com.alibaba.dubbo.rpc.RpcException: Forbid consumer 10.128.160.223 access service com.xx.idgen.IDGenService from registry zk.dev.xxxdc.com:2181 use dubbo version 2.5.3.4, Please check registry access list (whitelist/blacklist).怎么办?
1.检查检查服务提供者是否存在
2.提供者和消费者的version是否一致
3.重启provider和consumer,一般等待provider启动成功后,consumer在启动

 

 

 

 

 
posted on 2019-07-03 14:19  反光的小鱼儿  阅读(2618)  评论(0编辑  收藏  举报