• 【RocketMQ异常】Caused by: com.aliyun.openservices.shade.com.alibaba.rocketmq.client.exception.MQClientException: No route info of this topic, message-service-topic-testf


    一、异常信息

    2019-06-13 15:22:30.621 [pool-7-thread-1] ERROR c.x.x.r.service.producer.ali.AliMQProducerProcess.sendMessageFromQueue(AliMQProducerProcess.java:55) - defaultMQProducer send exception
    com.aliyun.openservices.ons.api.exception.ONSClientException: defaultMQProducer send exception
        at com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl.checkProducerException(ProducerImpl.java:238)
        at com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl.send(ProducerImpl.java:132)
        at com.rocketmq.service.producer.ali.AliMQProducerProcess.sendMessageFromQueue(AliMQProducerProcess.java:48)
        at com.rocketmq.service.producer.AbstractMessageProducerProcess.lambda$initExecutor$0(AbstractMessageProducerProcess.java:58)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: com.aliyun.openservices.shade.com.alibaba.rocketmq.client.exception.MQClientException: No route info of this topic, message-service-topic-testf
    See http://rocketmq.apache.org/docs/faq/ for further details.
        at com.aliyun.openservices.shade.com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:585)
        at com.aliyun.openservices.shade.com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1136)
        at com.aliyun.openservices.shade.com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1090)
        at com.aliyun.openservices.shade.com.alibaba.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:257)
        at com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl.send(ProducerImpl.java:123)

    二、原因分析及解决办法

    1.topic不存在

    创建topic

    2.ali-ons-addr地址不对
    仔细检查地址是否正确


  • 相关阅读:
    006 编程语言分类(我总不能扣内存条用计算机吧)
    002 Typora 的使用(markdown 的使用)
    05 神经网络语言模型(独热编码+词向量的起源)
    004 计算机五大组成(计算机组成原理)
    IfcTimeSeriesValue
    IfcEventTime
    IfcResourceTime
    IfcWorkTime
    IfcURIReference
    参数日志
  • 原文地址:https://www.cnblogs.com/756623607-zhang/p/11028263.html
Copyright © 2020-2023  润新知