得到 JdkVersion classNotFoundException

得到 JdkVersion classNotFoundException

IT小君   2022-09-15T08:20:24

我已将 spring 版本从4.2.3 更新到 5.0.2,将安全性从5.0.1更新到5.0.10并使用 spring-flex 版本1.6.0.RC1

像这样使用 BlazeDS 依赖项。

    <!--=| BlazeDS Dependencies |=-->
    <dependency org="com.adobe.blazeds" name="blazeds-core" rev="4.0.0.14931"/>
    <dependency org="com.adobe.blazeds" name="blazeds-common" rev="4.0.0.14931"/>
    <dependency org="com.adobe.blazeds" name="blazeds-remoting" rev="4.0.0.14931"/>

但我得到以下异常。

  SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: MessageBroker initialization failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/JdkVersion
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
服务器费用不足...
评论(1)
IT小君

Flex Bean _messageBroker 初始化失败。似乎它只支持 spring 4.X 并且 JdkVersion 在 Spring 5.X 中被弃用

2022-09-15T08:20:24   回复