Bug 2007933

Summary: Current tomcat fails with java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear() on JDK 1.8
Product: [Fedora] Fedora Reporter: Peter Boy <pboy>
Component: tomcatAssignee: Coty Sutherland <csutherl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 34CC: alee, coolsvap, csutherl, gzaronikas, huwang, ivan.afonichev, java-sig-commits, krzysztof.daniel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tomcat-9.0.59-3.fc34 tomcat-9.0.59-3.fc35 tomcat-9.0.59-3.fc36 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-18 19:13:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Boy 2021-09-26 09:18:17 UTC
Description of problem:

If you start tomcat on Fedora 34 on top of Java 1.8 you get:
[ajp-nio-0.0.0.0-8209-Acceptor] org.apache.tomcat.util.net.NioEndpoint.setSocketOptions Error setting socket options
   java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()

Version-Release number of selected component (if applicable):

Fedora 34, tomcat 9.0.52-1, OpenJDK headless 1.8.0_302-b08

How reproducible:

permanent

Steps to Reproduce:
1. Install F34, OpenJDK 1.8, tomcat and httpd
2. Start  tomcat and try to access the demo page via ajp proxy and httpd
3. check tomcat log

Same/similar issue shows up if you try to access the tomcat demo page using http and port 8080


Actual results:

Access to page denied emitting error message as above

Expected results:

Access to page

Additional info:

A similar error was found in Archlinux and got fixed. (https://bugs.archlinux.org/task/68224), I didn't checked the details so id may be a dead end

Comment 1 Fedora Update System 2022-03-10 21:10:07 UTC
FEDORA-2022-f615340e95 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f615340e95

Comment 2 Fedora Update System 2022-03-10 21:10:10 UTC
FEDORA-2022-1051064224 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1051064224

Comment 3 Fedora Update System 2022-03-10 21:10:13 UTC
FEDORA-2022-618171753a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-618171753a

Comment 4 Fedora Update System 2022-03-11 15:46:05 UTC
FEDORA-2022-f615340e95 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-f615340e95`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f615340e95

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-03-11 15:56:57 UTC
FEDORA-2022-618171753a has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-618171753a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-618171753a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-03-11 19:26:02 UTC
FEDORA-2022-1051064224 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-1051064224`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1051064224

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-03-18 19:13:05 UTC
FEDORA-2022-618171753a has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-03-18 20:05:59 UTC
FEDORA-2022-f615340e95 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-03-26 15:18:32 UTC
FEDORA-2022-1051064224 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.