https://bz.apache.org/bugzilla/show_bug.cgi?id=66875

Nils Kohrs <nils.ko...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #2 from Nils Kohrs <nils.ko...@gmail.com> ---
With the exact same code I do still run into the same issue as before. You
might have not included org.jetbrains.kotlinx:kotlinx-coroutines-reactor as
dependency. If that dependency is not added then tomcat calls are not executed
in async mode.

Here is the log output for Spring Boot v3.1.3 and Tomcat 10.1.12 for the
aforementioned code.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.1.3)

2023-09-25T14:28:52.231+02:00  INFO 41884 --- [           main]
com.example.demo.DemoApplicationKt       : Starting DemoApplicationKt using
Java 18.0.2.1 with PID 41884 (...)
2023-09-25T14:28:52.233+02:00  INFO 41884 --- [           main]
com.example.demo.DemoApplicationKt       : No active profile set, falling back
to 1 default profile: "default"
2023-09-25T14:28:52.848+02:00  INFO 41884 --- [           main]
o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s):
8080 (http)
2023-09-25T14:28:52.854+02:00  INFO 41884 --- [           main]
o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-09-25T14:28:52.855+02:00  INFO 41884 --- [           main]
o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache
Tomcat/10.1.12]
2023-09-25T14:28:52.917+02:00  INFO 41884 --- [           main]
o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded
WebApplicationContext
2023-09-25T14:28:52.918+02:00  INFO 41884 --- [           main]
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext:
initialization completed in 649 ms
2023-09-25T14:28:53.190+02:00  INFO 41884 --- [           main]
o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080
(http) with context path ''
2023-09-25T14:28:53.194+02:00  INFO 41884 --- [           main]
com.example.demo.DemoApplicationKt       : Started DemoApplicationKt in 1.251
seconds (process running for 1.71)
2023-09-25T14:28:54.564+02:00  INFO 41884 --- [nio-8080-exec-1]
o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring
DispatcherServlet 'dispatcherServlet'
2023-09-25T14:28:54.564+02:00  INFO 41884 --- [nio-8080-exec-1]
o.s.web.servlet.DispatcherServlet        : Initializing Servlet
'dispatcherServlet'
2023-09-25T14:28:54.564+02:00  INFO 41884 --- [nio-8080-exec-1]
o.s.web.servlet.DispatcherServlet        : Completed initialization in 0 ms
2023-09-25T14:28:54.821+02:00 ERROR 41884 --- [nio-8080-exec-1]
s.e.ErrorMvcAutoConfiguration$StaticView : Cannot render error page for request
[/suspend] as the response has already been committed. As a result, the
response may have the wrong status code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to