tools/jpackage/macosx/NameWithSpaceTest.java
Here's a snippet from the log file:
[11:32:11.380] Building DMG package for Name With Space.
[11:32:15.754] Command [PID: -1]:
jlink --output /var/folders/q8/898sb4bn6bl7ky7h4lkkchlh0000gp/T/jdk.jpackage6744507652695937859/images/image-13879660001595813200/Name With Space.app/Contents/runtime/Contents/Home --module-path /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+24-1558/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home/jmods --add-modules java.rmi,jdk.management.jfr,jdk.jdi,jdk.charsets,java.xml,jdk.xml.dom,java.datatransfer,jdk.jstatd,jdk.httpserver,java.desktop,java.security.sasl,jdk.zipfs,java.base,jdk.crypto.ec,jdk.javadoc,jdk.management.agent,jdk.jshell,jdk.editpad,java.sql.rowset,jdk.sctp,jdk.jsobject,jdk.jlink,java.smartcardio,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.transaction.xa,java.logging,java.xml.crypto,jdk.jfr,jdk.crypto.cryptoki,jdk.random,jdk.net,java.naming,jdk.internal.ed,java.prefs,java.net.http,jdk.compiler,jdk.internal.opt,jdk.naming.rmi,jdk.jconsole,jdk.attach,jdk.internal.le,java.management,jdk.jdwp.agent,jdk.incubator.foreign,jdk.internal.jvmstat,java.instrument,jdk.management,jdk.security.auth,java.scripting,jdk.jdeps,jdk.jartool,java.management.rmi,jdk.jpackage,jdk.naming.dns,jdk.localedata --strip-native-commands --strip-debug --no-man-pages --no-header-files
[11:32:15.755] Output:
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Error: java.lang.IllegalArgumentException
[11:32:15.755] Returned: 1
[11:32:15.755] jdk.jpackage.internal.PackagerException: jlink failed with: WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Error: java.lang.IllegalArgumentException
at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.runJLink(JLinkBundlerHelper.java:199)
at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.execute(JLinkBundlerHelper.java:81)
at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.createAppBundle(AppImageBundler.java:166)
at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.execute(AppImageBundler.java:91)
at jdk.jpackage/jdk.jpackage.internal.MacBaseInstallerBundler.prepareAppBundle(MacBaseInstallerBundler.java:167)
at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:82)
at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:579)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:689)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:561)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[11:32:15.756] jdk.jpackage.internal.PackagerException: jdk.jpackage.internal.PackagerException: jlink failed with: WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Error: java.lang.IllegalArgumentException
at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:95)
at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:579)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:689)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:561)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
Caused by: jdk.jpackage.internal.PackagerException: jlink failed with: WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Error: java.lang.IllegalArgumentException
at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.runJLink(JLinkBundlerHelper.java:199)
at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.execute(JLinkBundlerHelper.java:81)
at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.createAppBundle(AppImageBundler.java:166)
at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.execute(AppImageBundler.java:91)
at jdk.jpackage/jdk.jpackage.internal.MacBaseInstallerBundler.prepareAppBundle(MacBaseInstallerBundler.java:167)
at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:82)
... 5 more
[11:32:15.771] TRACE: exec: Done. Exit code: 1
[11:32:15.773] ERROR: Expected [0]. Actual [1]: Check command [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+24-1558/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home/bin/jpackage --input ./test/input --dest ./test/output --name "Name With Space" --type dmg --main-jar hello.jar --main-class Hello --verbose](14) exited with 0 code
[11:32:15.773] [ FAILED ] NameWithSpaceTest.test; checks=23
[11:32:15.774] [==========] 1 tests ran
[11:32:15.774] [ PASSED ] 0 tests
[11:32:15.774] [ FAILED ] 1 test, listed below
[11:32:15.775] [ FAILED ] NameWithSpaceTest.test; workDir=[./test]
[11:32:15.775] 1 FAILED TEST
----------System.err:(55/3860)----------
java.lang.AssertionError: Expected [0]. Actual [1]: Check command [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+24-1558/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home/bin/jpackage --input ./test/input --dest ./test/output --name "Name With Space" --type dmg --main-jar hello.jar --main-class Hello --verbose](14) exited with 0 code
at jdk.jpackage.test.TKit.error(TKit.java:264)
at jdk.jpackage.test.TKit.assertEquals(TKit.java:567)
at jdk.jpackage.test.Executor$Result.assertExitCodeIs(Executor.java:183)
at jdk.jpackage.test.Executor.execute(Executor.java:221)
at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:688)
at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:518)
at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:447)
at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:396)
at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at jdk.jpackage.test.PackageTest.lambda$runActions$20(PackageTest.java:360)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at jdk.jpackage.test.PackageTest.lambda$runActions$21(PackageTest.java:359)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:358)
at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:51)
at NameWithSpaceTest.test(NameWithSpaceTest.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
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:139)
at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:124)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:121)
at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
at jdk.jpackage.test.TKit.runTests(TKit.java:120)
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:107)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
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:107)
at jdk.jpackage.test.Main.main(Main.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
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:(39/7312)*----------
- duplicates
-
JDK-8285387 tools/jpackage/share/AddLauncherTest.java#id1 PackagerException: jlink failed with ... IllegalArgumentException
- Open
- relates to
-
JDK-8277507 Add jlink.debug system property while launching jpackage tests to help diagonize recent intermittent failures
- Resolved
-
JDK-8278043 [macos aarch64] tools/jpackage/share/AddLShortcutTest.java failed: ArrayIndexOutOfBoundsException: Index 39792 out of bounds for length 23384
- Open
-
JDK-8285387 tools/jpackage/share/AddLauncherTest.java#id1 PackagerException: jlink failed with ... IllegalArgumentException
- Open
-
JDK-8277160 [macos] tools/jpackage/share/MultiLauncherTwoPhaseTest.java failed with "PackagerException: jlink failed"
- Closed
-
JDK-8281854 tools/jpackage/share/jdk/jpackage/tests/BasicTest.java failed with IllegalArgumentException
- Closed
-
JDK-8282535 Corrupted class files on OSX aarch64
- Closed
-
JDK-8279704 [macos] jpackage test fails: "MainClassTest(modular=n; main-class=b; jar-main-class=b; jlink=y).test; checks=6"
- Closed
-
JDK-8281512 Test tools/jpackage/share/jdk/jpackage/tests/AppVersionTest.java fails - possibly corrupt classfile
- Closed