使用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包版本不对,记录一下

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2021-12-05
  • 2021-08-14
  • 2021-05-16
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-04-22
  • 2021-04-07
  • 2021-09-11
  • 2022-12-23
  • 2021-09-05
  • 2022-01-04
  • 2022-03-04
相关资源
相似解决方案