TEST: tools/jimage/JImageExtractTest.java TEST JDK: /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk ACTION: build -- Passed. All files up to date REASON: User specified action: run build jdk.test.lib.Asserts TIME: 0.0 seconds messages: command: build jdk.test.lib.Asserts reason: User specified action: run build jdk.test.lib.Asserts started: Wed Jan 15 09:04:02 CST 2025 finished: Wed Jan 15 09:04:02 CST 2025 elapsed time (seconds): 0.0 ACTION: build -- Passed. Build successful REASON: Named class compiled on demand TIME: 1.045 seconds messages: command: build JImageExtractTest reason: Named class compiled on demand started: Wed Jan 15 09:04:02 CST 2025 Test directory: compile: JImageExtractTest finished: Wed Jan 15 09:04:03 CST 2025 elapsed time (seconds): 1.045 ACTION: compile -- Passed. Compilation successful REASON: .class file out of date or does not exist TIME: 1.045 seconds messages: command: compile /tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage/JImageExtractTest.java reason: .class file out of date or does not exist started: Wed Jan 15 09:04:02 CST 2025 Additional options from @modules: --add-modules jdk.jlink --add-exports jdk.jlink/jdk.tools.jimage=ALL-UNNAMED Mode: othervm finished: Wed Jan 15 09:04:03 CST 2025 elapsed time (seconds): 1.045 configuration: javac compilation environment add modules: jdk.jlink add exports: jdk.jlink/jdk.tools.jimage ALL-UNNAMED source path: /tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage /tmp/tone/run/jtreg/jdk-repo/test/lib class path: /tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/test/lib rerun: cd /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest && \ DISPLAY=:7 \ HOME=/home/testUserForTone \ JTREG_VERSION=jtreg-7.4.1 \ LANG=C \ LC_CTYPE=C.UTF-8 \ LD_LIBRARY_PATH=/tmp/tone/run/jtreg/jdk-repo/build/tools/lib \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images \ /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk/bin/javac \ -J-ea \ -J-esa \ -J-Dtest.vm.opts='-ea -esa' \ -J-Dtest.tool.vm.opts='-J-ea -J-esa' \ -J-Dtest.compiler.opts= \ -J-Dtest.java.opts= \ -J-Dtest.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -J-Dcompile.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -J-Dtest.timeout.factor=4.0 \ -J-Dtest.nativepath=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ -J-Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \ -J-Dtest.name=tools/jimage/JImageExtractTest.java \ -J-Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage/JImageExtractTest.java \ -J-Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage \ -J-Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage:/tmp/tone/run/jtreg/jdk-repo/test/lib \ -J-Dtest.classes=/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d \ -J-Dtest.class.path=/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d:/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/test/lib \ -J-Dtest.modules=jdk.jlink/jdk.tools.jimage \ @/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest.d/compile.0.jta STDOUT: STDERR: ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException REASON: User specified action: run main/othervm/timeout=300 JImageExtractTest TIME: 1.961 seconds messages: command: main JImageExtractTest reason: User specified action: run main/othervm/timeout=300 JImageExtractTest started: Wed Jan 15 09:04:03 CST 2025 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules jdk.jlink --add-exports jdk.jlink/jdk.tools.jimage=ALL-UNNAMED finished: Wed Jan 15 09:04:05 CST 2025 elapsed time (seconds): 1.961 configuration: Boot Layer add modules: jdk.jlink add exports: jdk.jlink/jdk.tools.jimage ALL-UNNAMED STDOUT: Invoking testExtract jimage [extract, /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest/./JImageExtractTest3978454062921453679/smalljdk/lib/modules] Invoking testExtractHelp jimage [extract, --help] jimage [extract, --help] Invoking testExtractToDir jimage [extract, --dir, ./JImageExtractTest14767710544668966248, /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest/./JImageExtractTest3978454062921453679/smalljdk/lib/modules] Invoking testExtractNoImageSpecified jimage [extract, ] Invoking testExtractNotAnImage jimage [extract, ./JImageExtractTest6840194704272225375not_an_image] Invoking testExtractNotExistingImage jimage [extract, ./not_existing_image] Invoking testExtractToUnspecifiedDir jimage [extract, --dir, --, /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest/./JImageExtractTest3978454062921453679/smalljdk/lib/modules] STDERR: java.util.MissingResourceException: Can't find resource for bundle jdk.tools.jlink.resources.plugins, key err.ambiguous.arg at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:558) at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:514) at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$ResourceBundleHelper.getMessage(TaskHelper.java:487) at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$BadArgs.(TaskHelper.java:71) at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:552) at jdk.jlink/jdk.tools.jimage.JImageTask.run(JImageTask.java:191) at jdk.jlink/jdk.tools.jimage.Main.run(Main.java:48) at JImageCliTest.jimage(JImageCliTest.java:78) at JImageExtractTest.testExtractToUnspecifiedDir(JImageExtractTest.java:135) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at JImageCliTest.runTests(JImageCliTest.java:111) at JImageExtractTest.main(JImageExtractTest.java:234) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1447) java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at JImageCliTest.runTests(JImageCliTest.java:111) at JImageExtractTest.main(JImageExtractTest.java:234) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1447) Caused by: java.lang.RuntimeException: Output contains error, output=[] : expected true, was false at jdk.test.lib.Asserts.fail(Asserts.java:689) at jdk.test.lib.Asserts.assertTrue(Asserts.java:541) at JImageCliTest$JImageResult.assertShowsError(JImageCliTest.java:96) at JImageExtractTest.testExtractToUnspecifiedDir(JImageExtractTest.java:137) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ... 7 more JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException rerun: cd /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest && \ DISPLAY=:7 \ HOME=/home/testUserForTone \ JTREG_VERSION=jtreg-7.4.1 \ LANG=C \ LC_CTYPE=C.UTF-8 \ LD_LIBRARY_PATH=/tmp/tone/run/jtreg/jdk-repo/build/tools/lib \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images \ CLASSPATH=/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d:/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage:/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/test/lib:/tmp/tone/run/jtreg/jdk-repo/test/lib:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \ /tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk/bin/java \ -Dtest.vm.opts='-ea -esa' \ -Dtest.tool.vm.opts='-J-ea -J-esa' \ -Dtest.compiler.opts= \ -Dtest.java.opts= \ -Dtest.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -Dcompile.jdk=/tmp/tone/run/jtreg/jdk-repo/build/linux-x86_64-server-release/images/jdk \ -Dtest.timeout.factor=4.0 \ -Dtest.nativepath=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \ -Dtest.name=tools/jimage/JImageExtractTest.java \ -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage/JImageExtractTest.java \ -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage \ -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/tools/jimage:/tmp/tone/run/jtreg/jdk-repo/test/lib \ -Dtest.classes=/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d \ -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/tools/jimage/JImageExtractTest.d:/tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/classes/88/test/lib \ -Dtest.modules=jdk.jlink/jdk.tools.jimage \ --add-modules jdk.jlink \ --add-exports jdk.jlink/jdk.tools.jimage=ALL-UNNAMED \ -ea \ -esa \ -Djava.library.path=/tmp/tone/run/jtreg/test-images/hotspot/jtreg/native \ com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/jtreg/test_jdk/tools/jimage/JImageExtractTest.d/main.1.jta TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException