nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method queryHistoryAver

感谢这位博主的启发:https://blog.csdn.net/ruthless_ronin/article/details/81704144

Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method queryHistoryAverageRate in the service com.bjpowernode.p2p.service.loan.LoanInfoService. Tried 3 times of the providers [172.23.24.214:20880] (1/1) from the registry 127.0.0.1:2181 on the consumer 172.23.24.214 using the dubbo version 2.6.0. Last error is: Invoke remote method timeout. method: queryHistoryAverageRate, provider: dubbo://172.23.24.214:20880/com.bjpowernode.p2p.service.loan.LoanInfoService?anyhost=true&application=p2p&check=false&dubbo=2.6.0&generic=false&interface=com.bjpowernode.p2p.service.loan.LoanInfoService&methods=queryHistoryAverageRate&pid=7020&register.ip=172.23.24.214&remote.timestamp=1557808702786&revision=1.0.0&side=consumer&timeout=15000&timestamp=1557808713767&version=1.0.0, cause: Waiting server-side response timeout. start time: 2019-05-14 12:39:50.395, end time: 2019-05-14 12:40:05.400, client elapsed: 0 ms, server elapsed: 15005 ms, timeout: 15000 ms, request: Request [id=6, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=queryHistoryAverageRate, parameterTypes=[], arguments=[], attachments={path=com.bjpowernode.p2p.service.loan.LoanInfoService, interface=com.bjpowernode.p2p.service.loan.LoanInfoService, version=1.0.0, timeout=15000}]], channel: /172.23.24.214:62332 -> /172.23.24.214:20880

最终解决方案 把mysql-connector-java-5.1.43换成mysql-connector-java-5.1.46.。。。。。。。
原来困扰我好几天的问题竟是这个,土拨鼠哭泣/(ㄒoㄒ)/~~
以后可以在运行程序前先测试数据库是否连接得上
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值