按照官网文档无法正常收发消息,报错No topic route info in name server for the topic
Search before creation
- [x] I had searched in the issues and found no similar issues.
Documentation Related
按官方文档操作无法收发消息,消费端启动后报错在管理端查看消息详情显示No topic route info in name server for the topic,具体可以查看讨论。
官网文档里的使用工具测试收发是消费者和生产者,这两个代码拉到本地可以正常收发,且不需要提前创建主题。使用Producer.java创建的主题,用sdk可以正常收发,但是在管理端和命令行创建的主题无法使用sdk收发消息,报错No topic route info in name server for the topic
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
我怀疑官网使用sdk收发消息的代码压根就没有测试,或者只能在特定条件下通过测试。写代码这么多年第一次碰到抄文档跑不动hello world的产品。
要改两行代码才能跑起来,要把注释去掉
要改两行代码才能跑起来,要把注释去掉
![]()
https://github.com/apache/rocketmq/discussions/8008#discussioncomment-9130655
This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.
This issue was closed because it has been inactive for 3 days since being marked as stale.

