org.apache.rocketmq.client.consumer.DefaultMQPushConsumer.setNamespaceV2(java.lang.String) not exist

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer.initRocketMQPushConsumer(DefaultRocketMQListenerContainer.java:647)

The following method did not exist:

    'void org.apache.rocketmq.client.consumer.DefaultMQPushConsumer.setNamespaceV2(java.lang.String)'

The calling method's class, org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer, was loaded from the following location:

    jar:file:/D:/repository/org/apache/rocketmq/rocketmq-spring-boot/2.3.3/rocketmq-spring-boot-2.3.3.jar!/org/apache/rocketmq/spring/support/DefaultRocketMQListenerContainer.class

The called method's class, org.apache.rocketmq.client.consumer.DefaultMQPushConsumer, is available from the following locations:

    jar:file:/D:/repository/org/apache/rocketmq/rocketmq-client/5.1.3/rocketmq-client-5.1.3.jar!/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.class

The called method's class hierarchy was loaded from the following locations:

    org.apache.rocketmq.client.consumer.DefaultMQPushConsumer: file:/D:/repository/org/apache/rocketmq/rocketmq-client/5.1.3/rocketmq-client-5.1.3.jar
    org.apache.rocketmq.client.ClientConfig: file:/D:/repository/org/apache/rocketmq/rocketmq-client/5.1.3/rocketmq-client-5.1.3.jar


Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer and org.apache.rocketmq.client.consumer.DefaultMQPushConsumer
 

解决方法: 直接升级版本信息即可:


    org.apache.rocketmq
    rocketmq-spring-boot-starter
    2.3.3




    org.apache.rocketmq
    rocketmq-client
    5.2.0

你可能感兴趣的:(java-rocketmq,apache,rocketmq)