我在将我的应用程序表单spring-integration 4.0.4迁移到最新的4.1.0版本时出现问题。Spring Integration 4.1.0迁移问题
一旦更换罐子,我的集成上下文会为每个<recipient-list-router/>
标签引发异常。
抛出的异常是一个java.lang.ClassCastException
的消息是:
Caused by: java.lang.ClassCastException: com.sun.proxy.$Proxy62 cannot be cast to org.springframework.integration.context.IntegrationObjectSupport
at org.springframework.config.AbstractSimpleMessageHandlerFactoryBean.createHandlerInternal(AbstractSimpleMessageHandlerFactoryBean.java:130)
at org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean.getObject(AbstractSimpleMessageHandlerFactoryBean.java:102)
at org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean.getObject(AbstractSimpleMessageHandlerFactoryBean.java:44)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanReagistrySupport.java:168)
... 20 more
我使用Spring的集成4.1.0.RELEASE,弹簧核心4.1.2.RELEASE,并在jdk1.8.0_05运行。 我的集成bean上下文包含两个<recipient-list-router/>
标签,删除后不要抛出此错误。
关于此问题的JIRA问题:https://jira.spring.io/browse/INT-3565 –
感谢您的答复,definitley似乎工作。 对不起,不发布更多堆栈跟踪,但有问题的计算机没有连接到任何东西(公司政策),所以这有点困难... –