FS#68154 - [tomcat8] HTTP connector errors when running on Java 8
Attached to Project:
Arch Linux
Opened by Sebastian Strand (zeb) - Thursday, 08 October 2020, 13:25 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 09 October 2020, 14:15 GMT
Opened by Sebastian Strand (zeb) - Thursday, 08 October 2020, 13:25 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 09 October 2020, 14:15 GMT
|
Details
Description:
Tomcat8 no longer works with Java 8 starting from version 8.5.59-1 even though Java 8 is officially supported. Downgrading to 8.5.57-1 fixes the problem. The error logged in catalina.out is exactly the same as in this Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895866 From what I understand this could be fixed by ensuring that Tomcat is built using Java 8, building the package with Java 9+ causes this problem. Additional info: * package version: 8.5.59-1 * Java version: openjdk 8.u265-1 Steps to reproduce: - Run Tomcat8 using Java 8 - Try to connect using HTTP - Connection is terminated and Tomcat logs this stack trace: 08-Oct-2020 13:54:21.797 SEVERE [http-nio-8080-exec-10] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer; at org.apache.coyote.http11.Http11InputBuffer.recycle(Unknown Source) at org.apache.coyote.http11.Http11Processor.recycle(Unknown Source) at org.apache.coyote.AbstractProtocol$ConnectionHandler.release(Unknown Source) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(Unknown Source) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(Unknown Source) at org.apache.tomcat.util.net.SocketProcessorBase.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:748) |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Friday, 09 October 2020, 14:15 GMT
Reason for closing: Fixed
Additional comments about closing: 8.5.59-2
Friday, 09 October 2020, 14:15 GMT
Reason for closing: Fixed
Additional comments about closing: 8.5.59-2