org.apache.rocketmq.remoting.exception.RemotingTimeoutException:

迷彩 1月前 ⋅ 81 阅读

org.apache.rocketmq.remoting.exception.RemotingTimeoutException: invokeSync call timeout

异常信息

org.apache.rocketmq.remoting.exception.RemotingTimeoutException: invokeSync call timeout at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient .java:371) at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQCli entAPIImpl.java:1369) at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQCli entAPIImpl.java:1359) at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:624) at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:511) at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:360) at org.apache.rocketmq.client.impl.factory.MQClientInstance$3.run(MQClientInstance.java: 277) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Sched uledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThr eadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) 2020-08-06 16:50:59:326 ScheduledTask updateTopicRouteInfoFromNameServer exception [RocketmqClie nt:155]-[ERROR] java.lang.IllegalStateException: org.apache.rocketmq.remoting.exception.RemotingTimeoutException : invokeSync call timeout at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:681) at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:511) at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromName Server(MQClientInstance.java:360) at org.apache.rocketmq.client.impl.factory.MQClientInstance$3.run(MQClientInstance.java: 277) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Sched uledThreadPoolExecutor.java:180)

解决方法:

出现以上的异常一般都是Server端的版本和Client的版本不一致导致的,所以,最后Client的版本比Servie的低一些。


全部评论: 0

    我有话说: