Skip to content
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

CustomLauncherTest fails as its unable to find the launcher executable on Alpine Linux 11 #3238

Open
karianna opened this issue Jan 20, 2022 · 2 comments

Comments

@karianna
Copy link
Contributor

java.io.IOException: Cannot run program "/home/jenkins/workspace/Test_openjdk11_hs_extended.openjdk_x86-64_alpine-linux/aqa-tests/TKG/output_16425959244573/jdk_management_0/work/scratch/13/launcher": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:162)
at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:129)
at CustomLauncherTest.main(CustomLauncherTest.java:130)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 10 more

JavaTest Message: Test threw exception: java.io.IOException: Cannot run program "/home/jenkins/workspace/Test_openjdk11_hs_extended.openjdk_x86-64_alpine-linux/aqa-tests/TKG/output_16425959244573/jdk_management_0/work/scratch/13/launcher": error=2, No such file or directory
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.io.IOException: Cannot run program "/home/jenkins/workspace/Test_openjdk11_hs_extended.openjdk_x86-64_alpine-linux/aqa-tests/TKG/output_16425959244573/jdk_management_0/work/scratch/13/launcher": error=2, No such file or directory

@karianna
Copy link
Contributor Author

I'm immediately suspicious about the really long path.

@smlambert
Copy link
Contributor

https://bugs.openjdk.java.net/browse/JDK-8240604

For JDK8 and JDK11, this test uses prebuilt executables in test/sun/management/jmxremote/bootstrap/ dir.... in JDK15+ it builds the executable from launcher.c file

We can/should exclude this on 8/11 for alpine-linux.

@smlambert smlambert changed the title CustomeLauncherTest fails as its unable to find the launcher executable on Alpine Linux 11 CustomLauncherTest fails as its unable to find the launcher executable on Alpine Linux 11 Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants