Closed
Description
Hi,
I just played around with the graceful shutdown option server.shutdown.grace-period=1s
while being on Tomcat 9.0.31 and got this error.
2020-04-08 20:40:46.278 INFO 42505 --- [extShutdownHook] o.s.b.w.e.tomcat.TomcatGracefulShutdown : Commencing graceful shutdown, allowing up to 1s for active requests to complete
Exception in thread "SpringContextShutdownHook" java.lang.NoSuchMethodError: 'long org.apache.catalina.core.StandardContext.getInProgressAsyncCount()'
at org.springframework.boot.web.embedded.tomcat.TomcatGracefulShutdown.active(TomcatGracefulShutdown.java:91)
at org.springframework.boot.web.embedded.tomcat.TomcatGracefulShutdown.shutDownGracefully(TomcatGracefulShutdown.java:68)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.shutDownGracefully(TomcatWebServer.java:396)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:175)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:948)
I found d8cead5 that removed the reflection call, so maybe the "hard" requirement on 9.0.33 can be documented at least somewhere.
Cheers,
Christoph