dharezlak

Results 5 comments of dharezlak

Hello, I have a similar problem without Tomcat nor Jetty in classpath. The error I am getting is the following: ``` java.lang.ClassCastException: org.springframework.core.io.buffer.DefaultDataBufferFactory cannot be cast to org.springframework.core.io.buffer.NettyDataBufferFactory at org.springframework.cloud.gateway.filter.NettyWriteResponseFilter.lambda$filter$0(NettyWriteResponseFilter.java:61)...

I just noticed that this error occurs only in the testing mode. When run normally the gateway forwarding works fine.

Another thing I noticed is that when I use `WebClient` in tests instead of `WebTestClient` all is fine. Should using `WebTestClient` in `spring-gateway` based applications be prohibited?

@spencergibb It is indeed. The source of my problem was using the `@AutoConfigureWebTestClient` annotation. Without it my tests are working fine. When I use it I get the `ClassCastException` mentioned...

This is exactly our use case at the moment. We would like to have a config server which exposes a small REST API (webflux) to modify the provided configuration (JDBC-based)....