Testsuite: org.apache.coyote.http2.TestHttp2Section_3_5 Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.866 sec ------------- Standard Error ----------------- 18-Jul-2024 10:10:51.494 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNoConnectionPreface[0: loop [0], useAsyncIO[false]]] 18-Jul-2024 10:10:52.575 INFO [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["http-nio2-127.0.0.1-auto-1"] connector has been configured to support HTTP upgrade to [h2c] 18-Jul-2024 10:10:52.576 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 18-Jul-2024 10:10:52.646 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Jul-2024 10:10:52.646 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 18-Jul-2024 10:10:52.831 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38583"] 18-Jul-2024 10:10:52.995 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38583"] 18-Jul-2024 10:10:52.996 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Jul-2024 10:10:53.027 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38583"] 18-Jul-2024 10:10:53.029 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38583"] 18-Jul-2024 10:10:53.040 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNoConnectionPreface[1: loop [0], useAsyncIO[true]]] 18-Jul-2024 10:10:53.045 INFO [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["http-nio2-127.0.0.1-auto-2"] connector has been configured to support HTTP upgrade to [h2c] 18-Jul-2024 10:10:53.045 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 18-Jul-2024 10:10:53.048 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Jul-2024 10:10:53.048 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 18-Jul-2024 10:10:53.057 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38725"] 18-Jul-2024 10:10:53.121 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38725"] 18-Jul-2024 10:10:53.123 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Jul-2024 10:10:53.126 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38725"] 18-Jul-2024 10:10:53.131 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38725"] Exception in thread "http-nio2-127.0.0.1-auto-2-exec-3" org.apache.coyote.ProtocolException: Invalid connection preface presented at org.apache.coyote.http2.Http2AsyncParser$PrefaceCompletionHandler.callHandler(Http2AsyncParser.java:96) at org.apache.tomcat.util.net.SocketWrapperBase$VectoredIOCompletionHandler.completed(SocketWrapperBase.java:1077) at org.apache.tomcat.util.net.SocketWrapperBase$VectoredIOCompletionHandler.completed(SocketWrapperBase.java:1066) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129) at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) ------------- ---------------- --------------- Testcase: testNoConnectionPreface[0: loop [0], useAsyncIO[false]] took 1.656 sec Testcase: testNoConnectionPreface[1: loop [0], useAsyncIO[true]] took 0.097 sec