1

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.buildConnectionProvider(GatewayAutoConfiguration.java:798)

The following method did not exist:

reactor.netty.resources.ConnectionProvider$Builder.evictInBackground(Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider$ConnectionPoolSpec;

The method's class, reactor.netty.resources.ConnectionProvider$Builder, is available from the following locations:

jar:file:/C:/Users/Sam/.m2/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar!/reactor/netty/resources/ConnectionProvider$Builder.class

The class hierarchy was loaded from the following locations:

reactor.netty.resources.ConnectionProvider.Builder: file:/C:/Users/Sam/.m2/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar
reactor.netty.resources.ConnectionProvider.ConnectionPoolSpec: file:/C:/Users/Sam/.m2/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider$Builder

Process finished with exit code 1

2
  • 1
    The version of Spring Cloud Gateway that you are using is incompatible with the version of Reactor Netty that you are using. Can you share your build.gradle or pom.xml file so that we can see where the versions are coming from? Commented Jun 6, 2021 at 12:58
  • Hey man, Sorry for the late response. This is my pom for the project : github.com/sam112358/cloud-gateway/blob/main/pom.xml TIA Commented Jun 9, 2021 at 19:10

1 Answer 1

1

The method's that missing is new in Reactor Netty 0.9.13.RELEASE and you're using 0.9.12.RELEASE at the moment. This version is coming from Spring Boot 2.3.4's dependency management. Spring Boot 2.3.5 upgraded to Reactor Netty 0.9.13.RELEASE so you can fix the problem by upgrading to Spring Boot 2.3.5 or later.

Given that you're using Spring Cloud Hoxton.SR11 which was released in April 2021, I would recommend upgrading to a similarly recent Spring Boot 2.3.x release. 2.3.11.RELEASE is the latest available release at the time of writing.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.