dubbo com.alibaba.dubbo.remoting.RemotingException: message can not send, because channel is closed

错误信息

log4j:WARN No appenders could be found for logger (com.alibaba.dubbo.common.logger.LoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method searchRefundStatus in the service com.dinpay.refund.bank.IBankService. Tried 3 times of the providers [192.168.1.20:20880] (1/1) from the registry 224.224.224.224:1234 on the consumer 192.168.1.20 using the dubbo version 2.4.5. Last error is: Failed to invoke remote method: searchRefundStatus, provider: dubbo://192.168.1.20:20880

....

...

..

Caused by: com.alibaba.dubbo.remoting.RemotingException: message can not send, because channel is closed . url:dubbo://192.168.23.1:21954/com.tw.ei.business.agent.service.ReqBuinessAgentService?anyhost=true&application=consumer-engine&check=false&codec=dubbo&default.timeout=120000&dubbo=2.4.10&heartbeat=60000&interface=com.tw.ei.business.agent.service.ReqBuinessAgentService&methods=execute&pid=27587&retries=0&revision=reqappservice&side=consumer×tamp=1399973540550&version=1.0.0
at com.alibaba.dubbo.remoting.transport.AbstractClient.send(AbstractClient.java:268)
at com.alibaba.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:51)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeChannel.request(HeaderExchangeChannel.java:112)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient.request(HeaderExchangeClient.java:91)


错误信息一堆,折腾了好半天,最后发现是我要掉的那台机器使用了qq管家的wifi精灵,使他的机器的ip发生改变,其实他的ip不是192.168.23.1,后来把wifi精灵关闭,就可以正常调用。

VMware虚拟机安装之后会多出几个虚拟网卡,如果不禁用也会有差不多的问题。


你可能感兴趣的:(错误总结)