cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zhiyangchen
Level 6

numberformatexception in advanced get user input panel

Hi

I found a new bug in IA2011 + SP2. If I set the variable $ABC$ as the result variable of textfield in Advanced Get User Input Panel, the installer will hang with the following exception:

Does anyone know how to fix it?

2011-12-21 01:09:37.019-08:00 : STDERR : Error running install panel: Get User Input
java.lang.NumberFormatException
2011-12-21 01:09:37.023-08:00 : STDERR : java.lang.NumberFormatException
2011-12-21 01:09:37.024-08:00 : STDERR : at ZeroGad.a(DashoA10*..)
2011-12-21 01:09:37.024-08:00 : STDERR : at ZeroGad.a(DashoA10*..)
2011-12-21 01:09:37.025-08:00 : STDERR : at ZeroGad.b(DashoA10*..)
2011-12-21 01:09:37.025-08:00 : STDERR : at ZeroGad.b(DashoA10*..)
2011-12-21 01:09:37.026-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.b(DashoA10*..)
2011-12-21 01:09:37.029-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.g(DashoA10*..)
2011-12-21 01:09:37.029-08:00 : STDERR : at com.zerog.ia.installer.util.IAVariableStringResolver.a(DashoA10*..)
2011-12-21 01:09:37.030-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.a(DashoA10*..)
2011-12-21 01:09:37.031-08:00 : STDERR : at com.zerog.ia.installer.util.VariableFacade.a(DashoA10*..)
2011-12-21 01:09:37.031-08:00 : STDERR : at com.zerog.ia.installer.util.VariableFacade.substitute(DashoA10*..)
2011-12-21 01:09:37.033-08:00 : STDERR : at com.zerog.ia.installer.installpanels.GetUserInputPanel.n(DashoA10*..)
2011-12-21 01:09:37.034-08:00 : STDERR : at com.zerog.ia.installer.installpanels.GetUserInputPanel.g(DashoA10*..)
2011-12-21 01:09:37.034-08:00 : STDERR : at com.zerog.ia.installer.installpanels.GetUserInputPanel.b(DashoA10*..)
2011-12-21 01:09:37.034-08:00 : STDERR : at com.zerog.ia.api.priv.ZGInstallPanelProxy.a(DashoA10*..)
2011-12-21 01:09:37.034-08:00 : STDERR : at ZeroGho.setupUI(DashoA10*..)
2011-12-21 01:09:37.035-08:00 : STDERR : at com.zerog.ia.installer.AAMgr.a(DashoA10*..)
2011-12-21 01:09:37.035-08:00 : STDERR : at com.zerog.ia.installer.AAMgr.a(DashoA10*..)
2011-12-21 01:09:37.038-08:00 : STDERR : at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
2011-12-21 01:09:37.038-08:00 : STDERR : at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
2011-12-21 01:09:37.039-08:00 : STDERR : at com.zerog.ia.installer.AAMgr.a(DashoA10*..)
2011-12-21 01:09:37.039-08:00 : STDERR : at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
2011-12-21 01:09:37.039-08:00 : STDERR : at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
2011-12-21 01:09:37.039-08:00 : STDERR : at com.zerog.ia.installer.AAMgr.actionPerformed(DashoA10*..)
2011-12-21 01:09:37.044-08:00 : STDERR : at java.awt.Button.processActionEvent(Button.java:403)
2011-12-21 01:09:37.044-08:00 : STDERR : at java.awt.Button.processEvent(Button.java:371)
2011-12-21 01:09:37.045-08:00 : STDERR : at java.awt.Component.dispatchEventImpl(Component.java:4641)
2011-12-21 01:09:37.045-08:00 : STDERR : at java.awt.Component.dispatchEvent(Component.java:4471)
2011-12-21 01:09:37.045-08:00 : STDERR : at java.awt.EventQueue.dispatchEvent(EventQueue.java:610)
2011-12-21 01:09:37.045-08:00 : STDERR : at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:280)
2011-12-21 01:09:37.046-08:00 : STDERR : at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:195)
2011-12-21 01:09:37.046-08:00 : STDERR : at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:185)
2011-12-21 01:09:37.057-08:00 : STDOUT : ExtractToFile: target = /tmp/699558.tmp/reg.jar
2011-12-21 01:09:37.058-08:00 : STDOUT : ExtractToFile: extractWhatURL = jar:file:/tmp/install.dir.13585/InstallerData/installer.zip!/$IA_PROJECT_DIR$/lib/reg.jar
2011-12-21 01:09:37.193-08:00 : STDERR : Exception in thread "Thread-119"
2011-12-21 01:09:37.194-08:00 : STDERR : java.lang.NumberFormatException
2011-12-21 01:09:37.195-08:00 : STDERR : at ZeroGad.a(DashoA10*..)
2011-12-21 01:09:37.195-08:00 : STDERR : at ZeroGad.a(DashoA10*..)
2011-12-21 01:09:37.195-08:00 : STDERR : at ZeroGad.b(DashoA10*..)
2011-12-21 01:09:37.195-08:00 : STDERR : at ZeroGad.b(DashoA10*..)
2011-12-21 01:09:37.196-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.b(DashoA10*..)
2011-12-21 01:09:37.202-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.g(DashoA10*..)
2011-12-21 01:09:37.202-08:00 : STDERR : at com.zerog.ia.installer.util.IAVariableStringResolver.a(DashoA10*..)
2011-12-21 01:09:37.203-08:00 : STDERR : at com.zerog.ia.installer.util.VariableManager.b(DashoA10*..)
2011-12-21 01:09:37.204-08:00 : STDERR : at com.zerog.ia.installer.util.VariableFacade.b(DashoA10*..)
2011-12-21 01:09:37.204-08:00 : STDERR : at com.zerog.ia.installer.actions.Exec.getLogDescription(DashoA10*..)
2011-12-21 01:09:37.204-08:00 : STDERR : at com.zerog.ia.installer.IAStatus.(DashoA10*..)
2011-12-21 01:09:37.205-08:00 : STDERR : at com.zerog.ia.installer.IAStatus.(DashoA10*..)
2011-12-21 01:09:37.205-08:00 : STDERR : at ZeroGw0.run(DashoA10*..)
Labels (1)
0 Kudos
(10) Replies
SunnyBoy
Level 6

I tried with a Basic Sample Template project file. The issue was not reproducible. If possible, Could you share the project file?

Regards
SunnyBoy
0 Kudos
Macintosh
Level 5

Have you left any blank entry or have you applied any rule which is not in correct format or with blank value?

Try re-adding/configure the Get User Input panel...
0 Kudos
avudaithangam
Level 5

Are you using any customcode or extract to file action ($IA_PROJECT_DIR$/lib/reg.jar) before this panel?
0 Kudos
zhiyangchen
Level 6

avudaithangam wrote:
Are you using any customcode or extract to file action ($IA_PROJECT_DIR$/lib/reg.jar) before this panel?

Hi,

Yes,I try to extract the reg.jar to install_temp_dir. But I don't think it has any issue.
0 Kudos
zhiyangchen
Level 6

Macintosh wrote:
Have you left any blank entry or have you applied any rule which is not in correct format or with blank value?

Try re-adding/configure the Get User Input panel...


it doesn't work.
0 Kudos
Macintosh
Level 5

If you have marked the same variable (which is configured in Get User Input panel and Set IA variable action for "Evaluate any variable at assignment" property) for encryption under Project / Variables / configure variables then this issue might occur. Either remove that variable from the encryption property or do not mark it for "Evaluate any variable at assignment" property in Set IA variable action. It will resolve your issue 🙂

-- Mac
0 Kudos
zhiyangchen
Level 6

Macintosh wrote:
If you have marked the same variable (which is configured in Get User Input panel and Set IA variable action for "Evaluate any variable at assignment" property) for encryption under Project / Variables / configure variables then this issue might occur. Either remove that variable from the encryption property or do not mark it for "Evaluate any variable at assignment" property in Set IA variable action. It will resolve your issue 🙂

-- Mac


Hi Mac,

Exactlly!!! The problem was caused by the variable was set to encryption. So we can't encrypt the variable which in the panel user input, right? Are we going to support this? Because of security reason, we don't want to expose the password user input to the install log. How can we fix it except to exclude the variable?
0 Kudos
pv7721
Level 20

I think that there is a rather simple workaround: as the log file is not written to disk until the installation is finished, you may want to NULLify the variable right after it's used, so it won't be written in the install.log (actually it will be written, but as empty).

zhiyangchen wrote:
Hi Mac,

Exactlly!!! The problem was caused by the variable was set to encryption. So we can't encrypt the variable which in the panel user input, right? Are we going to support this? Because of security reason, we don't want to expose the password user input to the install log. How can we fix it except to exclude the variable?
0 Kudos
Macintosh
Level 5

In that case try the second approach I have mentioned i.e. "Do not mark that variable for "Evaluate any variable at assignment" property in Set IA variable action".
0 Kudos
zhiyangchen
Level 6

I have already found the root cause. In the Advanced Get User Input Panel, if I set $VCENTER_HOSTNAME$ as the Textfield result variable, it will abort with the exception. If I remove the $ from the result variable, then the problem is gone.
0 Kudos