spring-boot
spring-boot copied to clipboard
spring-integration-jmx causes java.lang.ClassCastException: com.sun.proxy.$Proxy...
I have a project that has a dependency on the following:
spring-boot-starter-integration:1.2.2.RELEASE spring-integration-java-dsl:1.0.1.RELEASE
which works fine when you run with mvn spring-boot:run
but... the moment I added a dependency on spring-integration-jmx:4.1.2.RELEASE
it starts throwing the ff:
Caused by: java.lang.ClassCastException: com.sun.proxy.$Proxy50 cannot be cast to org.springframework.integration.channel.DirectChannel
UPDATE: spelling
This is a Spring Integration limitation that will be addressed in its 4.2 release. See #2441 for more details