Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8281854

tools/jpackage/share/jdk/jpackage/tests/BasicTest.java failed with IllegalArgumentException

XMLWordPrintable

    • aarch64
    • os_x

      The following test failed in the JDK19 CI:

      tools/jpackage/share/jdk/jpackage/tests/BasicTest.java

      Here's a snippet from the log file:

      [14:07:31.514] [ RUN ] BasicTest.testNoName
      [14:07:31.515] TRACE: exec: Execute tool provider [javac -d ./testNoName/jar-workdir ./testNoName/src/Greetings.java](4)...
      [14:07:31.607] TRACE: exec: Done. Exit code: 0
      [14:07:31.608] TRACE: assertEquals(0): Check command tool provider [javac -d ./testNoName/jar-workdir ./testNoName/src/Greetings.java](4) exited with 0 code
      [14:07:31.608] TRACE: exec: Execute tool provider [jar -c -f ./testNoName/input/hello.jar -C ./testNoName/jar-workdir .](7)...
      [14:07:31.610] TRACE: exec: Done. Exit code: 0
      [14:07:31.610] TRACE: assertEquals(0): Check command tool provider [jar -c -f ./testNoName/input/hello.jar -C ./testNoName/jar-workdir .](7) exited with 0 code
      [14:07:31.611] TRACE: exec: Execute [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+10-573/macosx-aarch64.jdk/jdk-19.jdk/Contents/Home/bin/jpackage --input ./testNoName/input --dest ./testNoName/output --type app-image --main-jar hello.jar --main-class Greetings -J-Djlink.debug=true --verbose](13); inherit I/O...
      [14:07:31.869] Creating app package: Greetings.app in /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S24351/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de417edc-61e5-4706-afe1-9ae84cf1e633/runs/926ad632-ced5-4464-9e38-1f82db9eb90d/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/1/./testNoName/output
      [14:07:36.902] Command [PID: -1]:
          jlink --output ./testNoName/output/Greetings.app/Contents/runtime/Contents/Home --module-path /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+10-573/macosx-aarch64.jdk/jdk-19.jdk/Contents/Home/jmods --add-modules jdk.management.jfr,java.rmi,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,jdk.jsobject,java.sql.rowset,jdk.sctp,jdk.unsupported,java.smartcardio,jdk.jlink,java.security.jgss,java.compiler,jdk.nio.mapmode,jdk.dynalink,jdk.unsupported.desktop,jdk.accessibility,jdk.security.jgss,java.sql,jdk.incubator.vector,java.xml.crypto,java.logging,java.transaction.xa,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.internal.jvmstat,jdk.incubator.foreign,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
      [14:07:36.902] Output:
          WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
      Error: java.lang.IllegalArgumentException
      java.io.IOException: java.lang.IllegalArgumentException
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:163)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:871)
      at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:436)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:276)
      at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:55)
      at jdk.jlink/jdk.tools.jlink.internal.Main$JlinkToolProvider.run(Main.java:66)
      at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.runJLink(JLinkBundlerHelper.java:191)
      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.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: java.lang.IllegalArgumentException
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:290)
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:208)
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.AbstractPlugin.newClassReader(AbstractPlugin.java:90)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.StripJavaDebugAttributesPlugin.lambda$transform$1(StripJavaDebugAttributesPlugin.java:62)
      at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.lambda$transformAndCopy$0(ResourcePool.java:112)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.transformAndCopy(ResourcePool.java:111)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.StripJavaDebugAttributesPlugin.transform(StripJavaDebugAttributesPlugin.java:54)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.DefaultStripDebugPlugin.transform(DefaultStripDebugPlugin.java:76)
      at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:262)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:184)
      ... 16 more

      [14:07:36.904] Returned: 1

      [14:07:36.904] jdk.jpackage.internal.PackagerException: jlink failed with: WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
      Error: java.lang.IllegalArgumentException
      java.io.IOException: java.lang.IllegalArgumentException
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:163)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:871)
      at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:436)
      at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:276)
      at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:55)
      at jdk.jlink/jdk.tools.jlink.internal.Main$JlinkToolProvider.run(Main.java:66)
      at jdk.jpackage/jdk.jpackage.internal.JLinkBundlerHelper.runJLink(JLinkBundlerHelper.java:191)
      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.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: java.lang.IllegalArgumentException
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:290)
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:208)
      at java.base/jdk.internal.org.objectweb.asm.ClassReader.<init>(ClassReader.java:194)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.AbstractPlugin.newClassReader(AbstractPlugin.java:90)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.StripJavaDebugAttributesPlugin.lambda$transform$1(StripJavaDebugAttributesPlugin.java:62)
      at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.lambda$transformAndCopy$0(ResourcePool.java:112)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.transformAndCopy(ResourcePool.java:111)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.StripJavaDebugAttributesPlugin.transform(StripJavaDebugAttributesPlugin.java:54)
      at jdk.jlink/jdk.tools.jlink.internal.plugins.DefaultStripDebugPlugin.transform(DefaultStripDebugPlugin.java:76)
      at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:262)
      at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:184)
      ... 16 more

      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.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)
      [14:07:36.919] TRACE: exec: Done. Exit code: 1
      [14:07:36.920] ERROR: Expected [0]. Actual [1]: Check command [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+10-573/macosx-aarch64.jdk/jdk-19.jdk/Contents/Home/bin/jpackage --input ./testNoName/input --dest ./testNoName/output --type app-image --main-jar hello.jar --main-class Greetings -J-Djlink.debug=true --verbose](13) exited with 0 code
      [14:07:36.920] [ FAILED ] BasicTest.testNoName; checks=3

            sundar Sundararajan Athijegannathan
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: