运行报错
来源:9-9 Spring消息编程模型01-编写生产者

Fernwehs
2020-02-26
2020-02-26 15:18:23.191 ERROR 1116 — [nio-8010-exec-1] o.a.r.spring.core.RocketMQTemplate : syncSend failed. destination:add-bonus, message:GenericMessage [payload={“userId”:1,“bonus”:50}, headers={contentType=text/plain, id=7aa94410-7980-845d-7b1d-cf520c6b58a6, timestamp=1582701503183}]
2020-02-26 15:18:23.223 ERROR 1116 — [nio-8010-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.messaging.MessagingException: No route info of this topic, add-bonus
See http://rocketmq.apache.org/docs/faq/ for further details.; nested exception is org.apache.rocketmq.client.exception.MQClientException: No route info of this topic, add-bonus
See http://rocketmq.apache.org/docs/faq/ for further details.] with root cause
org.apache.rocketmq.client.exception.MQClientException: No route info of this topic, add-bonus
See http://rocketmq.apache.org/docs/faq/ for further details.
2回答
-
梅村
2020-03-30
我也是遇到同样的问题022020-03-31 -
大目
2020-02-26
org.apache.rocketmq.client.exception.MQClientException: No route info of this topic, add-bonus
从异常来看,是你rocketmq的nameserver找不到该topic所属的broker地址导致的。
建议将rockermq和微服务部署在同一个局域网内,并且别用虚拟机。
00
相似问题