spencergibb / spring-cloud-gateway-mvc-sample

Spring Cloud Gateway MVC Sample
Apache License 2.0
23 stars 9 forks source link

incompatibility with spring boot 3.2.0 final #4

Open paolodenti opened 10 months ago

paolodenti commented 10 months ago

When using spring boot 3.2.0 instead of 3.2.0-M3 as included here, an error is generated when DefaultRestClient.exchange is invoked

The issue happens here: https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/client/DefaultRestClient.java#L464

And the exception, with 3.2.0 only, is

Receiver class org.springframework.cloud.gateway.server.mvc.handler.RestClientProxyExchange$$Lambda/0x000000c0017a2678 does not define or inherit an implementation of the resolved method 'abstract java.lang.Object exchange(org.springframework.http.HttpRequest, org.springframework.web.client.RestClient$RequestHeadersSpec$ConvertibleClientHttpResponse)' of interface org.springframework.web.client.RestClient$RequestHeadersSpec$ExchangeFunction.

the error can be reproduced invoking anything that is not sending back an immediate response body without proxying. Any proxied url (e.g. http :8080/anything/first) is producing the error

the issue is present also with spring-cloud-dependencies:2023.0.0-RC1