FS#68274 - [tomcat9] HTTP connector errors when running on Java 8

Attached to Project: Arch Linux
Opened by Olli (coderkun) - Thursday, 15 October 2020, 20:57 GMT
Last edited by freswa (frederik) - Thursday, 15 October 2020, 21:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Similar to  FS#68154  but for Tomcat 9.

Description:
Tomcat9 no longer works with Java 8 starting from version 9.0.38-1 even though Java 8 is officially supported. Downgrading to 9.0.37-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: 9.0.38-1, 9.0.39-1
* Java version: openjdk 8.u265-1


Steps to reproduce:
- Run Tomcat9 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  freswa (frederik)
Thursday, 15 October 2020, 21:11 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#68224 

Loading...