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

[Packager] NPE when FA_ICON is used for MSI bundler via Java API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: deploy
    • Labels:
    • Environment:

      Windows 7, MSI, Java API

      Description

      The following code is used to provide an image with extension ".ico"

      params.put(FA_ICON.getID(), CONFIG_INSTANCE.getResourceFilePath("icon2." + iconExtension()).toFile());

      During the execution the following stacktrace is printed:

      java.lang.NullPointerException
      at com.oracle.tools.packager.windows.WinMsiBundler.prepareProto(WinMsiBundler.java:394)
      at com.oracle.tools.packager.windows.WinMsiBundler.bundle(WinMsiBundler.java:437)
      at com.oracle.tools.packager.windows.WinMsiBundler.execute(WinMsiBundler.java:228)
      at com.oracle.appbundlers.utils.JavaApiBundlingManager.execute(JavaApiBundlingManager.java:31)
      at com.oracle.appbundlers.utils.BundlingManager.execute(BundlingManager.java:41)
      at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:217)

        Attachments

          Activity

            People

            Assignee:
            shemnon Danno Ferrin (Inactive)
            Reporter:
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: