Spring Integration Java DSL Error

Going Bananas

I have set up a new Spring Boot + Spring Integration + Spring Integration Java DSL project using latest available versions. The project builds okay but, when I run the application, I am getting:

Caused by: java.lang.NoSuchMethodError: org.springframework.integration.dsl.StandardIntegrationFlow.isRegisterComponents()Z
    at org.springframework.integration.dsl.config.IntegrationFlowBeanPostProcessor.processStandardIntegrationFlow(IntegrationFlowBeanPostProcessor.java:139) ~[spring-integration-java-dsl-1.2.3.RELEASE.jar:?]
    at org.springframework.integration.dsl.config.IntegrationFlowBeanPostProcessor.postProcessBeforeInitialization(IntegrationFlowBeanPostProcessor.java:100) ~[spring-integration-java-dsl-1.2.3.RELEASE.jar:?]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:423) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]

The dependencies being used are currently as follows:

compile ("org.springframework.boot:spring-boot-starter:2.0.0.RC1") {
    exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile "org.springframework.boot:spring-boot-starter-data-jpa:2.0.0.RC1"
compile "org.springframework.boot:spring-boot-starter-log4j2:2.0.0.RC1"
compile "org.springframework.integration:spring-integration-core:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-http:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-jms:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-java-dsl:1.2.3.RELEASE"

Could the error be due to wrong combination of jar versions? I am not sure how to debug this error.

Artem Bilan

When you use Spring Integration 5.0 already, you don't need that extra spring-integration-java-dsl dependency. It has been merged to the core project since the version 5.0.

See more info in the Migration Guide and on that page for Spring Integration Java DSL project.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Spring Integration Java DSL: In the error channel database logger is not working

Spring integration java dsl error Found ambiguous parameter type

Spring Integration Java DSL HTTP no reply received within timeout error

Logging in spring integration java DSL

ErrorHandling in Spring Integration with Java Dsl

Spring Integration server with Java DSL

Spring Integration DSL Error Handler Thread ID

Spring Integration DSL Custom Error Channel Not Work

Spring Integration Java DSL Router with Logic

Spring Integration Java DSL Aggregator by Example

Spring Integration Java DSL Filter w/ Routing

AcceptOnceFileListFilter is overriding SimplePatternFileListFilter in Spring Integration JAVA DSL

Free queue channel in spring integration with java DSL

Spring Integration Java DSL - Reusable object in the flow

Spring Integration Java DSL -- Configuration of aggregator

spring integration java DSL for complex business logic

Spring Integration 4 - configuring a LoadBalancingStrategy in Java DSL

Spring Integration - Service Activator in Java DSL

Spring Integration - AMQP Inferred Types In Java DSL?

Spring Integration Java DSL: How to route the flow to the error channel if there occurs an error

Spring Integration Java DSL and Http.outboundGateway: How to get the real error message JSON

Spring Integration Java DSL: How to continue after error situation with the split and the aggregate methods?

Routing in Spring Integration DSL

spring integration dsl - NoSuchBeanDefinitionException

spring integration dsl buffer

Spring Integration JMS DSL

Spring Integration DSL transformer

Spring Integration DSL Custom Error Channel Issue with Executor

Spring Integration DSL JmsMessageDrivenChannelAdapter infinite retry after the error handler processing