tencent cloud

TDMQ for RocketMQ

Sending Message Error

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-23 17:52:25

ACL exception occurs when the client producer fails to send a message

Caused by: org.apache.rocketmq.client.exception.MQBrokerException: CODE: 1 DESC: org.apache.rocketmq.acl.common.AclException: [PRODUCE] Token authentication failed, please check, org.streamnative.pulsar.handlers.rocketmq.inner.RocketMQBrokerController$3.doBeforeRequest(RocketMQBrokerController.java:475)
For more information, please visit the url, http://rocketmq.apache.org/docs/faq/
at org.apache.rocketmq.client.impl.MQClientAPIImpl.processSendResponse(MQClientAPIImpl.java:665)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessageSync(MQClientAPIImpl.java:505)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:487)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.sendMessage(MQClientAPIImpl.java:431)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendKernelImpl(DefaultMQProducerImpl.java:854)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:584)
... 3 more
Possible reasons are as follows:
AK SK configuration is incorrect. If access-key/secret-key is not configured correctly, AclException will be displayed .
access-key: role key in the namespace configuration permissions.
secret-key: role name in the namespace configuration permissions.

RemotingConnectException occurs during client access

Caused by: org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to [rocketmq-vsxssa.rocketmq.ap-gz.qcloud.tencenttdmq.com:5098] failed
at org.apache.rocketmq.remoting.netty.NettyRemotingClient.getAndCreateNameserverChannel(NettyRemotingClient.java:445)
at org.apache.rocketmq.remoting.netty.NettyRemotingClient.getAndCreateChannel(NettyRemotingClient.java:400)
at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:369)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1363)
at org.apache.rocketmq.client.impl.MQClientAPIImpl.getTopicRouteInfoFromNameServer(MQClientAPIImpl.java:1353)
at org.apache.rocketmq.client.impl.factory.MQClientInstance.updateTopicRouteInfoFromNameServer(MQClientInstance.java:622)
... 6 more
Most of the time, the access point is incorrectly filled in. The access point can be found in Network Module on the Basic Information page of the cluster.
Cluster access address supports VPC private network access by default.
The cluster public network access address is disabled by default. If you need to enable public network access, you can submit a ticket for a virtual cluster, or enable/disable public network access by adjusting public network bandwidth for a dedicated cluster. Public network access is only recommended for testing.
Note:
When accessing via the VPC private network, ensure that the CVM instance is located in the same region or that the environment is capable of successfully accessing the VPC. Use tools such as ping or telnet to verify network connectivity. If the network connection fails, a RemotingConnectException error will be thrown.



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백