You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
javax.servlet.ServletException: javax.servlet.ServletException: org.springframework.web.server.ResponseStatusException: 502 BAD_GATEWAY
at org.springframework.web.servlet.function.ErrorHandlingServerResponse.handleError(ErrorHandlingServerResponse.java:69) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.function.AsyncServerResponse.lambda$writeTo$0(AsyncServerResponse.java:116) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) ~[na:1.8.0_201]
at java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:778) ~[na:1.8.0_201]
at java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2140) ~[na:1.8.0_201]
at org.springframework.web.servlet.function.AsyncServerResponse.writeTo(AsyncServerResponse.java:103) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.function.support.HandlerFunctionAdapter.handle(HandlerFunctionAdapter.java:77) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1061) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:961) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.0-RC2.jar:5.3.0-RC2]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.39.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.39.jar:9.0.39]
I would expect the request to be handled by e.g. ResponseStatusExceptionHandler and the ModelAndView exception handler.
I did not find documentation about the async handling.
The text was updated successfully, but these errors were encountered:
Affects:
v5.3.0-RC1
Related Kotlin Slack conversation:
https://kotlinlang.slack.com/archives/C0B8ZTWE4/p1602780417061400
When using functional routing and MVC the exception handling when using ServerResponse.async does not work as expected:
Router:
Implementation:
I would expect the request to show HTTP Bad Gateway, but instead I'm getting HTTP 200 with an empty response:
with the following exception in the server:
I would expect the request to be handled by e.g. ResponseStatusExceptionHandler and the ModelAndView exception handler.
I did not find documentation about the async handling.
The text was updated successfully, but these errors were encountered: