Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


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:

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]$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$SocketProcessor.doRun(Unknown Source)
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$ Source)

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