Testsuite: org.apache.tomcat.util.http.TestMimeHeadersIntegration Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.064 sec ------------- Standard Error ----------------- 08-Nov-2024 15:09:04.989 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits1] 08-Nov-2024 15:09:06.163 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 08-Nov-2024 15:09:06.231 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Nov-2024 15:09:06.231 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.2-dev] 08-Nov-2024 15:09:06.385 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36545"] 08-Nov-2024 15:09:06.455 INFO [http-nio2-127.0.0.1-auto-1-exec-2] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Request header is too large at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:773) at org.apache.coyote.http11.Http11InputBuffer.fillHeaderBuffer(Http11InputBuffer.java:745) at org.apache.tomcat.util.http.parser.HttpHeaderParser.parseHeader(HttpHeaderParser.java:123) at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:581) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:291) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1688) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1422) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:326) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:473) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:409) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:125) at java.base/sun.nio.ch.Invoker$1.run(Invoker.java:217) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:1570) 08-Nov-2024 15:09:06.519 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36545"] 08-Nov-2024 15:09:06.527 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Nov-2024 15:09:06.570 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36545"] 08-Nov-2024 15:09:06.571 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36545"] 08-Nov-2024 15:09:06.589 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits2] 08-Nov-2024 15:09:06.591 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 08-Nov-2024 15:09:06.614 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Nov-2024 15:09:06.614 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.2-dev] 08-Nov-2024 15:09:06.626 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44573"] 08-Nov-2024 15:09:06.662 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44573"] 08-Nov-2024 15:09:06.663 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Nov-2024 15:09:06.668 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44573"] 08-Nov-2024 15:09:06.669 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44573"] 08-Nov-2024 15:09:06.673 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits3] 08-Nov-2024 15:09:06.675 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 08-Nov-2024 15:09:06.688 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Nov-2024 15:09:06.688 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.2-dev] 08-Nov-2024 15:09:06.693 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-3-40319"] 08-Nov-2024 15:09:06.695 INFO [http-nio2-127.0.0.1-auto-3-exec-2] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalStateException: More than the maximum allowed number of headers, [100], were detected. at org.apache.tomcat.util.http.MimeHeaders.createHeader(MimeHeaders.java:267) at org.apache.tomcat.util.http.MimeHeaders.addValue(MimeHeaders.java:312) at org.apache.tomcat.util.http.parser.HttpHeaderParser.parseHeader(HttpHeaderParser.java:137) at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:581) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:291) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1688) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1422) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:326) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:473) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:409) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:125) at java.base/sun.nio.ch.Invoker$1.run(Invoker.java:217) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:1570) 08-Nov-2024 15:09:06.700 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-3-40319"] 08-Nov-2024 15:09:06.702 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Nov-2024 15:09:06.705 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-3-40319"] 08-Nov-2024 15:09:06.711 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3-40319"] 08-Nov-2024 15:09:06.717 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits4] 08-Nov-2024 15:09:06.720 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 08-Nov-2024 15:09:06.743 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Nov-2024 15:09:06.744 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.2-dev] 08-Nov-2024 15:09:06.747 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-34709"] 08-Nov-2024 15:09:06.751 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-34709"] 08-Nov-2024 15:09:06.752 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Nov-2024 15:09:06.755 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-34709"] 08-Nov-2024 15:09:06.756 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-34709"] ------------- ---------------- --------------- Testcase: testHeaderLimits1 took 1.789 sec Testcase: testHeaderLimits2 took 0.087 sec Testcase: testHeaderLimits3 took 0.042 sec Testcase: testHeaderLimits4 took 0.047 sec