PDA

View Full Version : numberformatexception in advanced get user input panel



zhiyangchen
12-27-2011, 01:51 AM
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.<init>(DashoA10*..)
2011-12-21 01:09:37.205-08:00 : STDERR : at com.zerog.ia.installer.IAStatus.<init>(DashoA10*..)
2011-12-21 01:09:37.205-08:00 : STDERR : at ZeroGw0.run(DashoA10*..)

SunnyBoy
12-27-2011, 02:04 AM
I tried with a Basic Sample Template project file. The issue was not reproducible. If possible, Could you share the project file?

Regards
SunnyBoy

Macintosh
12-27-2011, 03:41 AM
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...

avudaithangam
12-27-2011, 04:13 AM
Are you using any customcode or extract to file action ($IA_PROJECT_DIR$/lib/reg.jar) before this panel?

zhiyangchen
12-28-2011, 12:07 AM
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.

zhiyangchen
12-28-2011, 12:09 AM
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.

Macintosh
12-28-2011, 06:12 AM
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

zhiyangchen
12-28-2011, 09:32 PM
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?

pv7721
12-29-2011, 04:14 AM
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).


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?

Macintosh
12-29-2011, 07:52 AM
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".

zhiyangchen
02-08-2012, 01:35 AM
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.