content-center启动报错:This is very likely to create a memory leak
来源:9-9 Spring消息编程模型01-编写生产者

Tsien
2020-09-10
content-center启动报错:This is very likely to create a memory leak. Stack trace of thread:XXXX
详细请见截图:
关键报错信息:
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.cloud.function.context.config.JsonMessageConverter.<init>(JsonMessageConverter.java:47)
The following method did not exist:
org.springframework.messaging.converter.AbstractMessageConverter.<init>([Lorg/springframework/util/MimeType;)V
The method’s class, org.springframework.messaging.converter.AbstractMessageConverter, is available from the following locations:
jar:file:/C:/Users/tsien/.m2/repository/org/springframework/spring-messaging/5.2.1.RELEASE/spring-messaging-5.2.1.RELEASE.jar!/org/springframework/messaging/converter/AbstractMessageConverter.class
It was loaded from the following location:
file:/C:/Users/tsien/.m2/repository/org/springframework/spring-messaging/5.2.1.RELEASE/spring-messaging-5.2.1.RELEASE.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.messaging.converter.AbstractMessageConverter
1回答
-
Tsien
提问者
2020-09-10
和大目老师通过QQ群沟通,最后大目老师拉取代码库到本机分析,找到了原因;
问题解决思路:
1、报错:
The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.failover] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
检查机器内存,发现服务器内存足够;
2、检查springboot、springcloud-alibaba、springcloud三者版本,是否存在冲突;
三者版本分别为:2.2.1.RELEASE、2.2.1.RELEASE、Hoxton.SR6;
关键报错信息:
The following method did not exist:
org.springframework.messaging.converter.AbstractMessageConverter.<init>([Lorg/springframework/util/MimeType;)V
经过debug发现:spring-messaging 2.2.1版本 AbstractMessageConverter有个构造方法不存在,导致报错
springboot版本升级到2.2.2及以上后解决
012020-09-11
相似问题