Spring build 4.1.2在ThreadPoolTask​​Scheduler中抛出了有关缺少方法setRemoveOnCancelPolicy的错误

时间:2014-11-24 15:03:19

标签: spring spring-websocket

要解决问题https://jira.spring.io/browse/SPR-12283,我将Spring升级到版本41.2,之后它抱怨在ThreadPoolTask​​Scheduler中缺少方法setRemoveOnCancelPolicy。

根据JDK 1.6报告问题https://jira.spring.io/browse/SPR-12238,但我在1.7

我正在使用IBM Java,它的版本是java_1.7_64,当我在WebShepre中部署时,我得到以下异常

org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler 
org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport.defaultSockJsTaskScheduler()] 
threw exception; nested exception is java.lang.NoSuchMethodError: org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.setRemoveOnCancelPolicy(Z)V
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.ja

0 个答案:

没有答案