Uploaded image for project: 'IzPack'
  1. IzPack
  2. IZPACK-658

ShortcutPanel crashes on page flipping

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 4.3.3
    • Fix Version/s: None
    • Component/s: Panels
    • Labels:
      None
    • Environment:

      Windows 7 x64

      Description

      Create an install like this.

      <listeners>
      <listener installer="LateShortcutInstallListener" />
      </listeners>

      <panel classname="CheckedHelloPanel"/>
      <panel classname="LicencePanel"/>
      <panel classname="TargetPanel"/>
      <panel classname="PacksPanel"/>
      <panel classname="ShortcutPanel"/>
      <panel classname="SummaryPanel"/>
      <panel classname="InstallPanel"/>
      <panel classname="SimpleFinishPanel"/>

      When you reach ShortcutPanel press back and then next.
      The panel will not show correctly and the following stacktrace is provided

      java.lang.Exception: could not get an instance of IShellLink, failed to co-create instance
      at com.izforge.izpack.util.os.ShellLink.initialize(ShellLink.java:536)
      at com.izforge.izpack.util.os.ShellLink.<init>(ShellLink.java:374)
      at com.izforge.izpack.util.os.Win_Shortcut.initialize(Win_Shortcut.java:82)
      at com.izforge.izpack.panels.ShortcutPanel.panelActivate(ShortcutPanel.java:812)
      at com.izforge.izpack.installer.InstallerFrame.switchPanel(InstallerFrame.java:839)
      at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1451)
      at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1419)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(InstallerFrame.java:1582)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$0(InstallerFrame.java:1577)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(InstallerFrame.java:1566)
      at java.lang.Thread.run(Unknown Source)

      java.lang.NullPointerException
      at com.izforge.izpack.util.os.Win_Shortcut.getProgramsFolder(Win_Shortcut.java:679)
      at com.izforge.izpack.panels.ShortcutPanel.getProgramsFolder(ShortcutPanel.java:915)
      at com.izforge.izpack.panels.ShortcutPanel.panelActivate(ShortcutPanel.java:826)
      at com.izforge.izpack.installer.InstallerFrame.switchPanel(InstallerFrame.java:839)
      at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1451)
      at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1419)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(InstallerFrame.java:1582)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$0(InstallerFrame.java:1577)
      at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(InstallerFrame.java:1566)
      at java.lang.Thread.run(Unknown Source)

      Maybe only checking for shortcut field not initialized solves the problem, but I didn't go that far in finding what is causing the problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcelomarzolabossoni Marcelo Marzola Bossoni (Inactive)
            • Votes:
              4 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: