-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
I downloaded the zip file and built and ran the maven project at https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/pubsub/spring and got the following error:
`Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-01-19 11:39:17.567 ERROR 98439 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.cloud.stream.function.FunctionConfiguration$1.afterPropertiesSet(FunctionConfiguration.java:220)
The following method did not exist:
org.springframework.integration.dsl.IntegrationFlowBuilder.route(Ljava/lang/Class;Ljava/util/function/Function;)Lorg/springframework/integration/dsl/IntegrationFlowDefinition;
The method's class, org.springframework.integration.dsl.IntegrationFlowBuilder, is available from the following locations:
jar:file:/Users/jerry.thomas/.m2/repository/org/springframework/integration/spring-integration-core/5.4.3/spring-integration-core-5.4.3.jar!/org/springframework/integration/dsl/IntegrationFlowBuilder.class
The class hierarchy was loaded from the following locations:
org.springframework.integration.dsl.IntegrationFlowBuilder: file:/Users/jerry.thomas/.m2/repository/org/springframework/integration/spring-integration-core/5.4.3/spring-integration-core-5.4.3.jar
org.springframework.integration.dsl.IntegrationFlowDefinition: file:/Users/jerry.thomas/.m2/repository/org/springframework/integration/spring-integration-core/5.4.3/spring-integration-core-5.4.3.jar
org.springframework.integration.dsl.BaseIntegrationFlowDefinition: file:/Users/jerry.thomas/.m2/repository/org/springframework/integration/spring-integration-core/5.4.3/spring-integration-core-5.4.3.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.integration.dsl.IntegrationFlowBuilder`
In which file did you encounter the issue?
Did you change the file? If so, how?
No. I ran it as is.