-
Bug
-
Resolution: Fixed
-
P4
-
17, 21, 23, 24
-
b09
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8338192 | 23.0.2 | Vanitha B P | P4 | Resolved | Fixed | b01 |
JDK-8338200 | 21.0.6-oracle | Vanitha B P | P4 | Resolved | Fixed | b01 |
JDK-8344614 | 21.0.6 | Goetz Lindenmaier | P4 | Resolved | Fixed | b05 |
JDK-8338203 | 17.0.14-oracle | Vanitha B P | P4 | Resolved | Fixed | b01 |
JDK-8344850 | 17.0.14 | Goetz Lindenmaier | P4 | Resolved | Fixed | b05 |
tools/jpackage/windows/WinChildProcessTest.java
Here's a snippet from the log file:
#section:main
----------messages:(7/458)----------
command: main -Xmx512m jdk.jpackage.test.Main --jpt-run=WinChildProcessTest
reason: User specified action: run main/othervm -Xmx512m jdk.jpackage.test.Main --jpt-run=WinChildProcessTest
started: Fri Jul 12 11:44:51 UTC 2024
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jpackage --add-exports jdk.jpackage/jdk.jpackage.internal=ALL-UNNAMED
finished: Fri Jul 12 11:45:00 UTC 2024
elapsed time (seconds): 9.127
----------configuration:(4/129)----------
Boot Layer
add modules: jdk.jpackage
add exports: jdk.jpackage/jdk.jpackage.internal ALL-UNNAMED
----------System.out:(55/6211)*----------
[11:44:51.924] Parsing [--jpt-run=WinChildProcessTest]...
[11:44:51.987] WinChildProcessTest.test -> [public static void WinChildProcessTest.test() throws java.lang.Throwable]
[11:44:52.002] Create: WinChildProcessTest.test
[11:44:52.018] [ RUN ] WinChildProcessTest.test
[11:44:52.127] Running candle.exe
[11:44:52.190] Running light.exe
[11:44:52.284] Running wix.exe
[11:44:52.299] TRACE: Bundler msi supported
[11:44:52.299] Running candle.exe
[11:44:52.377] Running light.exe
[11:44:52.471] Running wix.exe
[11:44:52.471] TRACE: Bundler exe supported
[11:44:52.518] TRACE: exec: Execute tool provider [javac -d .\\test\\jar-workdir .\\test\\src\\Hello.java](4)...
[11:44:53.237] TRACE: exec: Done. Exit code: 0
[11:44:53.237] TRACE: assertEquals(0): Check command tool provider [javac -d .\\test\\jar-workdir .\\test\\src\\Hello.java](4) exited with 0 code
[11:44:53.237] TRACE: exec: Execute tool provider [jar -c -f .\\test\\input\\hello.jar -C .\\test\\jar-workdir .](7)...
[11:44:53.315] TRACE: exec: Done. Exit code: 0
[11:44:53.315] TRACE: assertEquals(0): Check command tool provider [jar -c -f .\\test\\input\\hello.jar -C .\\test\\jar-workdir .](7) exited with 0 code
[11:44:53.330] TRACE: exec: Execute [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-24+7-647\\windows-x64.jdk\\jdk-24\\bin\\jpackage.exe --input .\\test\\input --dest .\\test\\output --name WinChildProcessTest --type app-image --main-jar hello.jar --main-class Hello --win-console -J-Djlink.debug=true --verbose](16); inherit I/O...
[11:44:53.737] Creating app package: WinChildProcessTest in C:\\sb\\prod\\1720781149\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\scratch\\3\\.\\test\\output
[11:45:00.096] Command [PID: -1]:
jlink --output .\\test\\output\\WinChildProcessTest\\runtime --module-path c:\\\\ade\\\\mesos\\\\work_dir\\\\jib-master\\\\install\\\\jdk-24+7-647\\\\windows-x64.jdk\\\\jdk-24\\\\jmods --add-modules java.rmi,jdk.management.jfr,jdk.jdi,jdk.charsets,jdk.xml.dom,java.xml,java.datatransfer,jdk.jstatd,jdk.httpserver,java.desktop,java.security.sasl,jdk.zipfs,java.base,jdk.javadoc,jdk.management.agent,jdk.jshell,jdk.editpad,jdk.jsobject,java.sql.rowset,jdk.sctp,java.smartcardio,jdk.jlink,jdk.unsupported,java.security.jgss,jdk.nio.mapmode,java.compiler,jdk.dynalink,jdk.unsupported.desktop,jdk.accessibility,jdk.security.jgss,jdk.incubator.vector,java.sql,java.logging,java.transaction.xa,java.xml.crypto,jdk.jfr,jdk.internal.md,jdk.crypto.cryptoki,jdk.net,java.naming,jdk.internal.ed,java.prefs,java.net.http,jdk.compiler,jdk.naming.rmi,jdk.internal.opt,jdk.jconsole,jdk.attach,jdk.crypto.mscapi,jdk.internal.le,java.management,jdk.jdwp.agent,jdk.internal.jvmstat,java.instrument,jdk.management,jdk.security.auth,java.scripting,jdk.jdeps,jdk.jartool,jdk.jpackage,java.management.rmi,jdk.naming.dns,jdk.localedata --strip-native-commands --strip-debug --no-man-pages --no-header-files
[11:45:00.096] Output:
WARNING: Using incubator modules: jdk.incubator.vector
[11:45:00.096] Returned: 0
[11:45:00.112] Using default package resource JavaApp.ico [icon] (add WinChildProcessTest.ico to the resource-dir to customize).
[11:45:00.112] Warning: Windows Defender may prevent jpackage from functioning. If there is an issue, it can be addressed by either disabling realtime monitoring, or adding an exclusion for the directory "c:\\sb\\prod\\1720781149\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\tmp\\jdk.jpackage17972536289581077334".
[11:45:00.127] Using default package resource WinLauncher.template [Template for creating executable properties file] (add WinChildProcessTest.properties to the resource-dir to customize).
[11:45:00.174] Succeeded in building Windows Application Image package
[11:45:00.268] TRACE: exec: Done. Exit code: 0
[11:45:00.268] TRACE: assertEquals(0): Check command [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-24+7-647\\windows-x64.jdk\\jdk-24\\bin\\jpackage.exe --input .\\test\\input --dest .\\test\\output --name WinChildProcessTest --type app-image --main-jar hello.jar --main-class Hello --win-console -J-Djlink.debug=true --verbose](16) exited with 0 code
[11:45:00.284] TRACE: assertStringListEquals(): Check there is only one file with [.jpackage.xml] name in the package
[11:45:00.284] TRACE: assertStringListEquals(1, .\\test\\output\\WinChildProcessTest\\app\\.jpackage.xml)
[11:45:00.284] TRACE: assertStringListEquals(): Check there are no files with [.package] name in the package
[11:45:00.284] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\runtime] path exists
[11:45:00.284] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\runtime] is a directory
[11:45:00.284] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\WinChildProcessTest.exe] path exists
[11:45:00.284] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\WinChildProcessTest.exe] is a file
[11:45:00.299] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\WinChildProcessTest.exe] file is executable
[11:45:00.299] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\app\\WinChildProcessTest.cfg] path exists
[11:45:00.299] TRACE: assertTrue(): Check [.\\test\\output\\WinChildProcessTest\\app\\WinChildProcessTest.cfg] is a file
[11:45:00.299] TRACE: exec: Execute [C:\\sb\\prod\\1720781149\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\scratch\\3\\.\\test\\output\\WinChildProcessTest\\WinChildProcessTest.exe](1); save output...
Calc id=43708
[11:45:00.763] TRACE: exec: Done. Exit code: 0
[11:45:00.763] TRACE: assertEquals(0): Check command [C:\\sb\\prod\\1720781149\\testoutput\\test-support\\jtreg_open_test_jdk_tier3\\scratch\\3\\.\\test\\output\\WinChildProcessTest\\WinChildProcessTest.exe](1) exited with 0 code
Is Alive false
[11:45:00.763] ERROR: Failed: Check is calculator process is alive
[11:45:00.779] [ FAILED ] WinChildProcessTest.test; checks=14
[11:45:00.779] [==========] 1 tests ran
[11:45:00.779] [ PASSED ] 0 tests
[11:45:00.779] [ FAILED ] 1 test, listed below
[11:45:00.779] [ FAILED ] WinChildProcessTest.test; workDir=[.\\test]
[11:45:00.779] 1 FAILED TEST
----------System.err:(42/2704)----------
java.lang.AssertionError: Failed: Check is calculator process is alive
at jdk.jpackage.test.TKit.error(TKit.java:273)
at jdk.jpackage.test.TKit.assertTrue(TKit.java:653)
at jdk.jpackage.test.TKit.assertTrue(TKit.java:640)
at WinChildProcessTest.test(WinChildProcessTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
at jdk.jpackage.test.TKit.lambda$ignoreExceptions$5(TKit.java:141)
at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:126)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:123)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:109)
at jdk.jpackage.test.TKit.runTests(TKit.java:122)
at jdk.jpackage.test.Main.runTests(Main.java:79)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:109)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
java.lang.RuntimeException: 1 FAILED TEST
at jdk.jpackage.test.Main.reportSummary(Main.java:130)
at jdk.jpackage.test.Main.runTests(Main.java:90)
at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:109)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 1 FAILED TEST
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 1 FAILED TEST
----------rerun:(45/6577)*----------
- backported by
-
JDK-8338192 tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive
-
- Resolved
-
-
JDK-8338200 tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive
-
- Resolved
-
-
JDK-8338203 tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive
-
- Resolved
-
-
JDK-8344614 tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive
-
- Resolved
-
-
JDK-8344850 tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive
-
- Resolved
-
- relates to
-
JDK-8325525 Create jtreg test case for JDK-8325203
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk17u-dev/c4ea7b47
-
Commit(master) openjdk/jdk21u-dev/936b2395
-
Commit(master) openjdk/jdk23u/28207685
-
Commit(master) openjdk/jdk/2c9fd901
-
Review(master) openjdk/jdk17u-dev/3065
-
Review(master) openjdk/jdk21u-dev/1160
-
Review(master) openjdk/jdk23u/51
-
Review(master) openjdk/jdk/20312