weixin_45379020 2019-08-18 16:21 采纳率: 0%
浏览 2292

dubbo,zookeeper的报错, Failed to invoke the method doLogin

com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method doLogin in the service com.jt.service.DubboUserService. Tried 3 times of the providers 192.168.142.1:20880 from the registry 192.168.142.128:2181 on the consumer 192.168.142.1 using the dubbo version 2.6.2. Last error is: Invoke remote method timeout. method: doLogin, provider: dubbo://192.168.142.1:20880/com.jt.service.DubboUserService?anyhost=true&application=consumer-web&check=false&dubbo=2.6.2&generic=false&interface=com.jt.service.DubboUserService&methods=doLogin,insertUser&pid=10968&register.ip=192.168.142.1&remote.timestamp=1566114234721&side=consumer&timeout=3000&timestamp=1566114276413, cause: Waiting server-side response timeout. start time: 2019-08-18 16:07:14.269, end time: 2019-08-18 16:07:17.271, client elapsed: 0 ms, server elapsed: 3002 ms, timeout: 3000 ms, request: Request [id=45, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=doLogin, parameterTypes=[class com.jt.pojo.User], arguments=[User(id=null, username=admin123, password=admin123456, phone=null, email=null)], attachments={path=com.jt.service.DubboUserService, interface=com.jt.service.DubboUserService, version=0.0.0, timeout=3000}]], channel: /192.168.142.1:51995 -> /192.168.142.1:20880

Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2019-08-18 16:07:14.269, end time: 2019-08-18 16:07:17.271, client elapsed: 0 ms, server elapsed: 3002 ms, timeout: 3000 ms, request: Request [id=45, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=doLogin, parameterTypes=[class com.jt.pojo.User], arguments=[User(id=null, username=admin123, password=admin123456, phone=null, email=null)], attachments={path=com.jt.service.DubboUserService, interface=com.jt.service.DubboUserService, version=0.0.0, timeout=3000}]], channel: /192.168.142.1:51995 -> /192.168.142.1:20880
试过把20880端口改掉,防火墙也没开着,代码在教室的电脑能够运行,在我自己的笔记本上就报这个错

  • 写回答

1条回答 默认 最新

  • Json-Huang 2019-08-18 17:59
    关注

    笔记本连的网络不能访问192.168.142.128:2181上的服务,可以试着连着教室网络试试看。

    评论

报告相同问题?

悬赏问题

  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名