rocketmq 5 TopicMessageType validate failed
使用rocketmq 5 发送消息时,报错:
org.apache.rocketmg.client.exception.MBrokerException: CODE: 13 DESC: TopicMessageType validate failed, the expected type is UNSPECIFIED, but actual type is NORMAL BROKER: xxxx:8080
或者:
DESC: No topic route info in name server for the topic: orderTopic4
broker设置了autoCreateTopicEnable=true,但是不会自动创建topic。
解决:
在RocketMQ 5.0,该参数只有直连nameServer才生效,连接proxy不生效。