No route info of this topic

使用rocketmq时报错

com.alibaba.rocketmq.client.exception.MQClientException: No route info of this topic, topic-test

搜索原因,找到这几种解决方式

1: 在启动broker时,添加 autoCreateTopicEnable=true 如: mqbroker -n localhost:9876 autoCreateTopicEnable=true

2:检查lib下有无fastjson的jar包

3:windows版本在环境变量中添加 NAMESRV_ADDR 为 127.0.0.1:9876

结果都不行,最后发现是mq的版本和使用的jar包版本不对,记录一下

猜你喜欢

转载自www.cnblogs.com/lly001/p/11062098.html