LaOngDaoxing 2023-04-21 17:39 采纳率: 0%
浏览 11

org.springframework.jms.config.DefaultJmsListenerContainerFactory.setExceptionListener

一、jar包版本


pom.xml
        <springboot.version>2.6.2</springboot.version>
        <spring.version>5.3.14</spring.version>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-all</artifactId>
            <version>5.16.5</version>
        </dependency>

二、控制台启动报错信息

***************************
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.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer.configure(DefaultJmsListenerContainerFactoryConfigurer.java:117)

The following method did not exist:

    org.springframework.jms.config.DefaultJmsListenerContainerFactory.setExceptionListener(Ljavax/jms/ExceptionListener;)V

The calling method's class, org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer, was loaded from the following location:

    jar:file:/D:/developsoft/java/javaweb/commonBackPlugins/maven/apache-maven-3.8.1/maven_localM2_IdeaPro/org/springframework/boot/spring-boot-autoconfigure/2.6.2/spring-boot-autoconfigure-2.6.2.jar!/org/springframework/boot/autoconfigure/jms/DefaultJmsListenerContainerFactoryConfigurer.class

The called method's class, org.springframework.jms.config.DefaultJmsListenerContainerFactory, is available from the following locations:

    jar:file:/D:/developsoft/java/javaweb/commonBackPlugins/maven/apache-maven-3.8.1/maven_localM2_IdeaPro/org/apache/activemq/activemq-all/5.16.5/activemq-all-5.16.5.jar!/org/springframework/jms/config/DefaultJmsListenerContainerFactory.class

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

    org.springframework.jms.config.DefaultJmsListenerContainerFactory: file:/D:/developsoft/java/javaweb/commonBackPlugins/maven/apache-maven-3.8.1/maven_localM2_IdeaPro/org/apache/activemq/activemq-all/5.16.5/activemq-all-5.16.5.jar
    org.springframework.jms.config.AbstractJmsListenerContainerFactory: file:/D:/developsoft/java/javaweb/commonBackPlugins/maven/apache-maven-3.8.1/maven_localM2_IdeaPro/org/apache/activemq/activemq-all/5.16.5/activemq-all-5.16.5.jar


Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer and org.springframework.jms.config.DefaultJmsListenerContainerFactory


  • 写回答

1条回答 默认 最新

  • 守时间的孤岛 2023-04-21 17:44
    关注

    依赖冲突了吧

    评论

报告相同问题?

问题事件

  • 修改了问题 4月21日
  • 创建了问题 4月21日

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题