FS#68224 - [tomcat9] HTTP connector errors when running on Java 8
Attached to Project:
Arch Linux
Opened by Stefan Langeland (morphus) - Monday, 12 October 2020, 10:54 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 16 October 2020, 07:41 GMT
Opened by Stefan Langeland (morphus) - Monday, 12 October 2020, 10:54 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 16 October 2020, 07:41 GMT
|
Details
Description:
Tomcat9 no longer works with Java 8 starting from version 9.0.39-1 even though Java 8 is officially supported. Same error message as in this Bug: https://bugs.archlinux.org/task/68154. If you compile tomcat9 with JDK >= 9, it stops working with JDK 8. Additional info: * package version: 9.0.39-1 * Java version: openjdk version "1.8.0_265" Steps to reproduce: - Run Tomcat9 using Java 8 - Try to connect using HTTP - Connection is terminated and Tomcat logs this stack trace: 2020-10-12 12:50:28.245 ERROR 1040 --- [http-nio-18080-Acceptor] org.apache.tomcat.util.net.NioEndpoint : Error setting socket options java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; at org.apache.tomcat.util.net.SocketBufferHandler.reset(Unknown Source) ~[tomcat-coyote.jar:9.0.39] at org.apache.tomcat.util.net.NioChannel.reset(Unknown Source) ~[tomcat-coyote.jar:9.0.39] at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(Unknown Source) [tomcat-coyote.jar:9.0.39] at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(Unknown Source) [tomcat-coyote.jar:9.0.39] at org.apache.tomcat.util.net.Acceptor.run(Unknown Source) [tomcat-coyote.jar:9.0.39] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_265] |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Friday, 16 October 2020, 07:41 GMT
Reason for closing: Fixed
Additional comments about closing: 9.0.39-2
Friday, 16 October 2020, 07:41 GMT
Reason for closing: Fixed
Additional comments about closing: 9.0.39-2
https://github.com/archlinux/svntogit-packages/commit/24f425b75f23dd0db141b6c0490250b624e1033e#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a
(sorry for creating duplicates for these two issues, I somehow missed the existing ones …)