[izpack-user] Missing Panel in Linux Console mode

87 views
Skip to first unread message

Andy Bowes

unread,
Mar 18, 2014, 1:10:49 PM3/18/14
to us...@izpack.codehaus.org

Hi

 

We have created an installer using IZPack and it works fine on Windows & Linux using the GUI but we hit a problem when it is executed on the Linux command line with the ‘–console’ option.

 

One of the steps (which allows the user to specify a data directory) seems to be skipped during the installation process and this causes the following stack trace to be produced at the end of the installer:

 

[ ERROR: Internal error occured : java.lang.NullPointerException ]
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:514)
at java.util.Properties.setProperty(Properties.java:161)
at com.izforge.izpack.installer.AutomatedInstallData.setVariable(Unknown Source)
at uk.gov.nhs.spine.dbs.installer.EscapePaths.escapePathAndStore(EscapePaths.java:35)
at uk.gov.nhs.spine.dbs.installer.EscapePaths.beforePacks(EscapePaths.java:21)
at com.izforge.izpack.installer.UnpackerBase.informListeners(Unknown Source)
at com.izforge.izpack.installer.Unpacker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)

 

Our list of Panels is quite small and it is the UserPathPanel which is skipped:

    <panels>

        <panel classname="HelloPanel" />

        <panel classname="TargetPanel" />

        <panel classname="UserPathPanel" />

        <panel classname="UserInputPanel" id="UserInputPanel.ServerDetails" />

        <panel classname="UserInputPanel" id="UserInputPanel.OrganisationDetails" />

        <panel classname="PacksPanel" />

        <panel classname="SummaryPanel" />

        <panel classname="InstallPanel" />

        <panel classname="SimpleFinishPanel" />

    </panels>

 

I can’t see anything obvious that would cause this behaviour, has anyone seen it before?

 

Thanks

Andy

The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed, to persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS do not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW

René Krell

unread,
Mar 19, 2014, 3:51:53 AM3/19/14
to us...@izpack.codehaus.org
Which version of IzPack do you use?
The latest versions 5.0.0-rc1 (release candidate), 5.0.0-rc2-SNAPSHOT added several more panel implementations and skip unimplemented panels instead of throwing ugly exceptions.
René

Sébastien Christy

unread,
Mar 19, 2014, 3:56:23 AM3/19/14
to us...@izpack.codehaus.org
Hi Andy,

Which version of IzPack do you use ?

I you use a 5.0.0-betaXX or the 5.0.0-rc1, UserPathPanel has no console
implementation for now. See these issues on Jira:

Console installation support for all built-in panels
(http://jira.codehaus.org/browse/IZPACK-871)

Create console implementation of the UserPathPanel
(http://jira.codehaus.org/browse/IZPACK-934)

Regards,
--
Sébastien Christy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andy Bowes

unread,
Mar 19, 2014, 4:39:54 AM3/19/14
to us...@izpack.codehaus.org
Hi

We are using 4.3.5, haven't upgraded to the RC.

Is there an alternative approach that can supply the same functionality as the UserPathPanel panel if this is not supported in console mode? Ideally we would need to perform the same sort of path validation & existence checking that is supplied by the UserPathPanel.

Thanks
Andy

-----Original Message-----
From: Sébastien Christy [mailto:sebastie...@neomades.com]
Sent: 19 March 2014 07:56
To: us...@izpack.codehaus.org
Subject: Re: [izpack-user] Missing Panel in Linux Console mode

Hi Andy,

Which version of IzPack do you use ?

I you use a 5.0.0-betaXX or the 5.0.0-rc1, UserPathPanel has no console implementation for now. See these issues on Jira:

Console installation support for all built-in panels
(http://jira.codehaus.org/browse/IZPACK-871)

Create console implementation of the UserPathPanel
(http://jira.codehaus.org/browse/IZPACK-934)

Regards,


Le 18/03/2014 18:10, Andy Bowes a écrit :
> Hi
>
>
>
> We have created an installer using IZPack and it works fine on Windows
> & Linux using the GUI but we hit a problem when it is executed on the
> Linux command line with the '-console' option.
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed, to persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS do not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW

Andy Bowes

unread,
Mar 21, 2014, 1:00:50 PM3/21/14
to us...@izpack.codehaus.org
I know that this is denoted at a low priority but is there an expected resolution date for the JIRA : http://jira.codehaus.org/browse/IZPACK-934 ?

We are looking to live with our application in June and so either need this issue resolved or an alternative for the implementation of the UserPathPanel in console mode.

Andy Bowes

unread,
Apr 17, 2014, 5:29:33 AM4/17/14
to us...@izpack.codehaus.org
What is the best way to show/hide panels if the installer is being run in 'console' mode so that I can display an alternative panel to the GUI representation?

I can see the 'os' setting that allows the switch based on operating system but I cannot see a similar option that acts as a conditional based on gui/console mode.

René Krell

unread,
Apr 17, 2014, 5:59:20 AM4/17/14
to us...@izpack.codehaus.org
Did you try binding a condition on the <panel> definition? See http://docs.codehaus.org/display/IZPACK/Panels

Andy Bowes

unread,
Apr 17, 2014, 7:40:18 AM4/17/14
to us...@izpack.codehaus.org

I can see pre-defined conditions based on the OS of the install but I cannot see how to use a condition to detect if the installer is being run in console mode.  Is there a pre-defined condition or a simple way to detect if the installer is being run in GUI or console mode?

 

Sorry for the newbie questions but it’s the first time that I’ve used izpack.

Reply all
Reply to author
Forward
0 new messages