Testsuite: org.apache.coyote.http11.TestHttp11OutputBuffer Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.495 sec ------------- Standard Error ----------------- 13-Dec-2024 18:40:14.286 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHTTPHeaderAbove255] 13-Dec-2024 18:40:15.135 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 13-Dec-2024 18:40:15.170 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Dec-2024 18:40:15.171 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.3-dev] 13-Dec-2024 18:40:15.334 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-44533"] 13-Dec-2024 18:40:15.458 WARNING [http-nio-127.0.0.1-auto-1-exec-1] org.apache.coyote.http11.Http11Processor.writeHeaders The HTTP response header [X-Test] with value [Ā should fail] has been removed from the response because it is invalid java.lang.IllegalArgumentException: java.nio.charset.UnmappableCharacterException: Input length = 1 at org.apache.tomcat.util.buf.MessageBytes.toBytes(MessageBytes.java:293) at org.apache.coyote.http11.Http11OutputBuffer.write(Http11OutputBuffer.java:389) at org.apache.coyote.http11.Http11OutputBuffer.sendHeader(Http11OutputBuffer.java:368) at org.apache.coyote.http11.Http11Processor.writeHeaders(Http11Processor.java:1057) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1044) at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:376) at org.apache.coyote.Response.action(Response.java:206) at org.apache.coyote.Response.commit(Response.java:452) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:278) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:258) at org.apache.catalina.connector.Response.flushBuffer(Response.java:435) at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:177) at org.apache.coyote.http11.TestHttp11OutputBuffer$HeaderServlet.doGet(TestHttp11OutputBuffer.java:137) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:619) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:130) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:79) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:395) 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.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1746) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) 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) Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1 at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:280) at java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:836) at org.apache.tomcat.util.buf.MessageBytes.toBytes(MessageBytes.java:286) ... 31 more 13-Dec-2024 18:40:15.475 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-44533"] 13-Dec-2024 18:40:15.477 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Dec-2024 18:40:15.502 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-44533"] 13-Dec-2024 18:40:15.511 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-44533"] 13-Dec-2024 18:40:15.516 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHTTPHeaderBelow128] 13-Dec-2024 18:40:15.518 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 13-Dec-2024 18:40:15.518 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Dec-2024 18:40:15.519 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.3-dev] 13-Dec-2024 18:40:15.523 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-33487"] 13-Dec-2024 18:40:15.547 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-33487"] 13-Dec-2024 18:40:15.547 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Dec-2024 18:40:15.550 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-33487"] 13-Dec-2024 18:40:15.555 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-33487"] 13-Dec-2024 18:40:15.557 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHTTPHeader128To255] 13-Dec-2024 18:40:15.559 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 13-Dec-2024 18:40:15.560 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Dec-2024 18:40:15.560 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.3-dev] 13-Dec-2024 18:40:15.565 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-3-44363"] 13-Dec-2024 18:40:15.577 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-3-44363"] 13-Dec-2024 18:40:15.580 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Dec-2024 18:40:15.586 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-3-44363"] 13-Dec-2024 18:40:15.590 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3-44363"] 13-Dec-2024 18:40:15.592 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSendAck] 13-Dec-2024 18:40:15.595 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 13-Dec-2024 18:40:15.597 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Dec-2024 18:40:15.597 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.3-dev] 13-Dec-2024 18:40:15.604 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-44209"] 13-Dec-2024 18:40:15.613 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-44209"] 13-Dec-2024 18:40:15.615 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Dec-2024 18:40:15.620 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-44209"] 13-Dec-2024 18:40:15.622 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-44209"] ------------- ---------------- --------------- Testcase: testHTTPHeaderAbove255 took 1.325 sec Testcase: testHTTPHeaderBelow128 took 0.04 sec Testcase: testHTTPHeader128To255 took 0.035 sec Testcase: testSendAck took 0.032 sec