Error: 'java.lang.NumberFormatException: For input string' when trying to power on a Virtual Machine in VMware Cloud Director
search cancel

Error: 'java.lang.NumberFormatException: For input string' when trying to power on a Virtual Machine in VMware Cloud Director

book

Article ID: 429167

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When you are trying to power on a Virtual Machine(VM) deployed from an OVA, VMware Cloud Director(VCD) throws the below error:

    java.lang.NumberFormatException: For input string: "<string value>" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

  • You can see the below errors from VCD browser logs:

    stackTrace="java.lang.NumberFormatException: For input string: &quot;<string value>&quot;&#10; at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&#10; at java.base/java.lang.Integer.parseInt(Integer.java:652)&#10; at java.base/java.lang.Integer.parseInt(Integer.java:770)&#10; at com.vmware.vcloud.ovf.properties.impl.OvfPropertyServiceImpl.checkQualifiers(OvfPropertyServiceImpl.java:442)&#10; at com.vmware.vcloud.ovf.validation.impl.OvfProductSectionValidatorImpl.checkProperty(OvfProductSectionValidatorImpl.java:478)&#10; at com.vmware.vcloud.ovf.validation.impl.OvfProductSectionValidatorImpl.checkProperties(OvfProductSectionValidatorImpl.java:425)&#10; at
    ...
    at java.base/java.lang.Thread.run(Thread.java:829)&#10;" message="[ ########-####-####-####-####a192 ] For input string: &quot;<string value>&quot;" majorErrorCode="500" minorErrorCode="INTERNAL_SERVER_ERROR"/>

Environment

VMware Cloud Director 10.6.1.1

Cause

The issue occurs because of editing the OVA manually and adding the information like personalization code to the OVA which was imported into VCD. 

Resolution

To resolve the issue the OVA needs to be edited removing the personalization code that has been added to the OVA before deploying in VCD.

For further information on Guest Customization please go through the document: Understanding Guest Customization