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

博客讲述了在使用RocketMQ时遇到的MQClientException异常的解决方法,强调了版本匹配、名称服务器连接、路由元信息获取、权限设置等方面的重要性。确保生产者与nameserver版本一致,检查路由信息并正确设置主题权限,以避免此类问题。
摘要由CSDN通过智能技术生成

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-)。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值