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

tools/jpackage/share/FileAssociationsTest.java#id0 failed unpack.bat with "Exit code: 1603"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK16 CI:

      tools/jpackage/share/FileAssociationsTest.java#id0

      Here's a snippet from the first failure in the log file:


      [15:26:00.313] Succeeded in building MSI Installer Package package
      [15:26:00.760] TRACE: exec: Done. Exit code: 0
      [15:26:00.760] TRACE: assertEquals(0): Check command [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+26-1685\\windows-x64.jdk\\jdk-16\\bin\\jpackage.exe --input .\\test.bcc14973\\input --dest .\\test.bcc14973\\output --name FileAssociationsTest --type msi --file-associations .\\test.bcc14973\\fa.properties --main-jar hello.jar --main-class Hello --win-console --file-associations .\\test.bcc14973\\fa2.properties --verbose](19) exited with 0 code
      [15:26:00.760] TRACE: assertTrue(): Check [.\\test.bcc14973\\output\\FileAssociationsTest-1.0.msi] path exists
      [15:26:00.760] TRACE: assertTrue(): Check [.\\test.bcc14973\\output\\FileAssociationsTest-1.0.msi] is a file
      [15:26:00.760] TRACE: Create [T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\4\\test.bcc14973\\unpacked-msi\\unpack.bat] text file...
      [15:26:00.775] TRACE: msiexec /a "test.bcc14973\\output\\FileAssociationsTest-1.0.msi" /qn TARGETDIR="T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\4\\test.bcc14973\\unpacked-msi\\Program Files"
      [15:26:00.775] TRACE: Done
      [15:26:00.775] TRACE: exec: Execute [cmd /c .\\test.bcc14973\\unpacked-msi\\unpack.bat](3); discard I/O...
      [15:26:03.947] TRACE: exec: Done. Exit code: 1603
      [15:26:03.968] ERROR: Expected [0]. Actual [1603]: Check command [cmd /c .\\test.bcc14973\\unpacked-msi\\unpack.bat](3) exited with 0 code
      [15:26:03.968] [ FAILED ] FileAssociationsTest.test(true); checks=6
      [15:26:03.968] [ RUN ] FileAssociationsTest.testNoMime

      Here's a snippet from the next error:

      [15:26:06.487] WiX 3.11.1.2318 detected. Enabling advanced cleanup action.
      [15:26:06.503] jdk.jpackage.internal.ConfigException: No MIME types were specified for File Association number 1
      at jdk.jpackage/jdk.jpackage.internal.FileAssociation.verify(FileAssociation.java:60)
      at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.validate(WinMsiBundler.java:293)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:663)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:538)
      at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
      at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
      [15:26:06.503] jdk.jpackage.internal.PackagerException: Bundler MSI Installer Package skipped because of a configuration problem: No MIME types were specified for File Association number 1
      Advice to fix: Specify MIME type for File Association number 1
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:676)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:538)
      at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
      at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
      Caused by: jdk.jpackage.internal.ConfigException: No MIME types were specified for File Association number 1
      at jdk.jpackage/jdk.jpackage.internal.FileAssociation.verify(FileAssociation.java:60)
      at jdk.jpackage/jdk.jpackage.internal.WinMsiBundler.validate(WinMsiBundler.java:293)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:663)
      ... 3 more
      [15:26:06.534] TRACE: exec: Done. Exit code: 1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: