[izpack-user] RE: Automated install - issues running custom process classes

518 views
Skip to first unread message

Niambh Scullion

unread,
Aug 23, 2010, 9:03:39 AM8/23/10
to us...@izpack.codehaus.org

Hi Guys,

I hope all is well, and I hope someone can advise with the issue I am having. On Friday I posted the problem below I was having running an Installer in the automated mode.

 

I have identified what I think is causing the problem, which is the automated installer is invoking the process, however there is an idata object that we set in a custom panel that is null. This is the problem I am seeing below.

 

So, I am now looking at the automation within this pre-processing class, I have created an CuramPreProcessAutomationHelper class with two methods:

·         public void makeXMLData(final AutomatedInstallData idata,

    final IXMLElement panelRoot) { }

 

·         public void runAutomated(final AutomatedInstallData idata,

    final IXMLElement panelRoot) throws InstallerException {}

 

My main CuramPreProcess, has a method

·         public void makeXMLData(final IXMLElement panelRoot) {}, this method hooks into my CuramPreProcessAutomationHelper. makeXMLData(..)

 

When I run my installer, I can see that any variable I add to the XMLData file is set, however when I run the installer in automated mode my preprocess panel is still not executed.

 

Cheers,

Niambh

 

 

From: Niambh Scullion
Sent: 20 August 2010 17:16
To: us...@izpack.codehaus.org
Subject: Automated install - issues running custom process classes

 

Hi Guys,

I hope you can help me, we have created a finish panel that produces an xml automation script, using the recommendation of using GridbagLayout.

 

When I run my automated script using the following command “java -jar -verbose Development.jar installDocument.xml” (the installDocument is in the same directory as my installer).

 

In our installer, we have a number of classes that are executed as part of the ProcessPanelSpec, when I run my installer and pass in my xml file, I am getting the error below:

 

Read pack list from xml definition.

Try to remove from selection [Name: C·ram Reporting and Index: 0]

Try to add to selection [Name: C·ram Enterprise Framework and Index: 1]

Modify pack selection.

Pack [Name: C·ram Reporting and Index: 0] removed from selection.

[ Starting processing ]

Starting process Setting Installation Data (1/9)

Calculating installation information.

[ ERROR: Invocation Problem calling : curam.installerinf.processmanager.ApplicationInstallationManager, null ]

[ Processing finished ]

com.izforge.izpack.installer.InstallerException: The work done by the ProcessPanel (line 65) failed

com.izforge.izpack.installer.InstallerException: The work done by the ProcessPanel (line 65) failed

        at com.izforge.izpack.panels.ProcessPanelAutomationHelper.runAutomated(Unknown Source)

        at com.izforge.izpack.installer.AutomatedInstaller.installPanel(Unknown Source)

        at com.izforge.izpack.installer.AutomatedInstaller.doInstall(Unknown Source)

        at com.izforge.izpack.installer.Installer.main(Unknown Source)

[ Automated installation FAILED! ]

 

In my ApplicationInstallationManager I have a method

 

public void run(final AbstractUIProcessHandler handler,

    final String[] arguments){

//do

//some

//stuff

}

 

Do I need anything extra to run a process class in an Automated install. I also need to add, we keep our class files completely separate to IZPack, and all our classes are jared into our own jar file.

 

Many thanks in advance,

Niambh

  

 



The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.

Niambh Scullion

unread,
Aug 23, 2010, 9:57:18 AM8/23/10
to us...@izpack.codehaus.org

Hi there, oops, I got it! The helper class must have the same name as the original class, with AutomationHelper appended to the name of the helper class.

 

Cheers,

Niambh

Reply all
Reply to author
Forward
0 new messages