Skip to content

problem running pubsub spring / spring  #4570

@jerryatzoom

Description

@jerryatzoom

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.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions