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

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上的服务,可以试着连着教室网络试试看。

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘