apache / rocketmq-spring

Apache RocketMQ Spring Integration
https://rocketmq.apache.org/
Apache License 2.0
2.12k stars 898 forks source link

DefaultMQProducer and TransactionMQProducer are in unnamed module of loader 'app' #649

Closed yeyufang closed 7 months ago

yeyufang commented 7 months ago

rocketmq.spring.boot.starter.version: 2.3.0 sprint.boot.version:3.2.4

I tried to send a transaction message and created an A class, using @ RocketMQTransactionListener and implementing the RocketMQLocalTransactionListener interface, but the application startup prompt:

class org.apache.rocketmq.client.producer.DefaultMQProducer cannot be cast to class org.apache.rocketmq.client.producer.TransactionMQProducer (org.apache.rocketmq.client.producer.DefaultMQProducer and org.apache.rocketmq.client.producer.TransactionMQProducer are in unnamed module of loader 'app')