spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.51k stars 3.31k forks source link

The following method did not exist: org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V #2100

Closed SunLinux0523 closed 3 years ago

SunLinux0523 commented 3 years ago

springboot version: 2.2.4RELEASE springcloud version:Hoxton.SR7

org.springframework.cloud spring-cloud-starter-gateway

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.gateway.config.GatewayAutoConfiguration$NettyConfiguration.reactorNettyWebSocketClient(GatewayAutoConfiguration.java:748)

The following method did not exist:

org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V

The method's class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient, is available from the following locations:

jar:file:/E:/maven-repo/repository/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar!/org/springframework/web/reactive/socket/client/ReactorNettyWebSocketClient.class

It was loaded from the following location:

file:/E:/maven-repo/repository/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient

spencergibb commented 3 years ago

Please upgrade to boot 2.2.12 and Hoxton.SR9 and try again

SunLinux0523 commented 3 years ago

springboot version: 2.2.4RELEASE springcloud version:Hoxton.SR7

org.springframework.cloud spring-cloud-starter-gateway 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.gateway.config.GatewayAutoConfiguration$NettyConfiguration.reactorNettyWebSocketClient(GatewayAutoConfiguration.java:748)

The following method did not exist:

org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V

The method's class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient, is available from the following locations:

jar:file:/E:/maven-repo/repository/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar!/org/springframework/web/reactive/socket/client/ReactorNettyWebSocketClient.class

It was loaded from the following location:

file:/E:/maven-repo/repository/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient

SunLinux0523 commented 3 years ago

se upgrade to boot 2.2.12 and Hoxton.SR9 and try again

OK,Thank you

sumitaws99 commented 10 months ago

ok thanks working now