【消息中间件JMS java message service】RocketMQ踩坑记录

Exception in thread “main” org.apache.rocketmq.client.exception.MQClientException

巨坑问题。
特别坑的注意点就是:你用的rocketMQ版本,一定要和你引用的pom文件同一个版本

除了看官网的FAQ:

This happens when you are trying to send messages to a topic whose routing info is not available to the producer.

Make sure that the producer can connect to a name server and is capable of fetching routing meta info from it.
Make sure that name servers do contain routing meta info of the topic. You may query the routing meta info from name server through topicRoute using admin tools or web console.
Make sure that your brokers are sending heartbeats to the same list of name servers your producer is connecting to.
Make sure that the topic’s permssion is 6(rw-), or at least 2(-w-).

翻译:
当您试图将消息发送到一个主题,而该主题的路由信息对生产者是不可用的时,就会发生这种情况。

确保生产者可以连接到一个名称服务器,并能够从它获取路由元信息。
确保名称服务器包含主题的路由元信息。您可以使用管理工具或web控制台从名称服务器通过topicRoute查询路由元信息。
请确保您的代理将心跳发送到您的生产者所连接的名称服务器列表。
确保主题的权限是6(rw-),或至少2(-w-)。

你可能感兴趣的:(学习笔记,JMS,java,rocketmq)