IzPack

Commandline install fails due to ShortcutPanelAutomationHelper error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.11.0
  • Fix Version/s: 4.0.0
  • Component/s: Installer, Panels
  • Labels:
    None
  • Environment:
    Mac OS X and Windows
  • Number of attachments :
    0

Description

After a normal install I saved the installation script. Using that script to run the installation from the commandline, a NullPointerException is raised on the ShortcutPanelAutomationHelper.runAutomated (see stack trace). I tested this on both Mac OS X (where the panel is correctly ignored during normal installation) and on Windows. Both had the same error. It seems to me that the tests at the start of the runAutomated method are not working as they should.

Here's the terminal output:

$ java -jar geonetwork-install-2.2.0-0.jar install.xml
[ Starting automated installation ]
[ Starting to unpack ]
[ Processing package: Core (1/3) ]
[ Processing package: Sample metadata (2/3) ]
[ Processing package: GeoServer web map server (3/3) ]
[ Unpacking finished ]
java.lang.NullPointerException
at com.izforge.izpack.panels.ShortcutPanelAutomationHelper.runAutomated(ShortcutPanelAutomationHelper.java:141)
at com.izforge.izpack.installer.AutomatedInstaller.doInstall(AutomatedInstaller.java:397)
at com.izforge.izpack.installer.Installer.main(Installer.java:68)
[ Writing the uninstaller data ... ]
[ Automated installation FAILED! ]

Issue Links

Activity

Hide
Julien Ponge added a comment -

Those issues affect the same component.

Show
Julien Ponge added a comment - Those issues affect the same component.
Hide
Hans Aikema added a comment -

targeting for fix in version 4.0.0

Show
Hans Aikema added a comment - targeting for fix in version 4.0.0
Hide
Hans Aikema added a comment -

Updated ShortcutPanelAutomationHelper to prevent the NPE on automated installs where the Shortcut specification does not include a programGroup

Show
Hans Aikema added a comment - Updated ShortcutPanelAutomationHelper to prevent the NPE on automated installs where the Shortcut specification does not include a programGroup

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: