-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jdk8u builds fail on build-marist-rhel79-s390x-1: java.lang.UnsupportedClassVersionError: org/apache/tools/ant/launch/Launcher : Unsupported major.minor version 52.0 #2777
Comments
@Haroon-Khel fyi |
Oh this has been happing for a while so not a new issue. Presumably when the new machines were provisioned a few weeks back. |
If it's a class version issue it'll be because the java level it's trying to run with is lower than the version that the tool requirs. I guess this is running the CycloneDX stuff which has some specific java dependencies. |
Yeah, I suspect the apache ant java code is compiled with a later version than the JDK in the path/jdk_home ? Might worth comparing with node -2 ? |
Alot of forums are pointing to using a higher jdk during compile time and a lower jdk during runtime. According to https://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0 the 52.0 suggests that whatever was compiled was compiled with java8, so it is being run by a java lower than that. The build-marist-rhel79 machines both have java7 installed, but theyre not in the PATH so I dont know why ant would use them |
These Marist machines come with a lot of extra java binaries
We only install 8 10 11 15 16 and 17 as part of our playbooks so I reckon the rest come from the provider |
https://github.com/adoptium/temurin-build/blob/8e043e364ecac19f72fc592116de9386ed7ffd0d/sbin/build.sh#L676 is the code which defines which java is used for this section of the process. We need to understand why this is behaving differently on each system (Suggest manual re-runs with |
Fresh build on build-marist-rhel79-s390x-1 https://ci.adoptium.net/view/Failing%20Temurin%20jobs/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-linux-s390x-temurin/262/console |
Point of note: Since adoptium/ci-jenkins-pipelines#642 (March 8th this year) we have been building in a docker container, so nothing on the host system should be affecting this any more. |
The build itself passed so I am comfortable closing this issue. The smoke test failed due to
on test-docker-sles12-s390x-1 for which I'll raise a separate issue |
Actually the above error concerns the built image, if im not mistaken? I'll reopen until I can confirm the error is unrelated to the build |
That machine is being decommissioned (it should already have been - I'm surprised it's even still live) as per #3022 so you should be able to run it somewhere else. Surprised we haven't hit that previously to be honest. Suggest running that on the other SLES12 box to verify that it works on there. |
The build passes, as does the smoke test, so I am closing this issue and opening a new one for the failing smoke test on test-docker-sles12-s390x-1 due to a missing library |
Seems possibly a setup issue on node build-marist-rhel79-s390x-1
unclear what is causing:
https://ci.adoptopenjdk.net/view/Failing%20Temurin%20jobs/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-linux-s390x-temurin/154/
but it's repeatable.
I've disabled the node: https://ci.adoptopenjdk.net/computer/build-marist-rhel79-s390x-1/
The text was updated successfully, but these errors were encountered: