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

Fatal Exception : java.lang.IndexOutOfBoundsException: Index

Fatal Exception : java.lang.IndexOutOfBoundsException: Index

Summary :
Fatal Exception : java.lang.IndexOutOfBoundsException: Index

Symptoms :

After making several adjustments to the settings and constructing the project, we mostly encountered errors,

java.lang.IndexOutOfBoundsException: Index :0 out of bounds for length 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at com.zerog.ia.designer.customizers.ApplianceHardwareInfo.refreshSettings(Unknown Source)
at com.zerog.ia.designer.customizers.VMConfigurationCustomizer.aa(Unknown Source)
at com.zerog.ia.designer.customizers.VMConfigurationCustomizer.setup(Unknown Source)
at com.zerog.ia.designer.customizers.TBuildAppliance.setupThisApplianceBuildConfiguration(Unknown Source)
at com.zerog.ia.designer.customizers.TBuildAppliance.setup(Unknown Source)
at com.zerog.ia.designer.Dashboard.setObject(Unknown Source)

Resolution :

IndexOutOfBoundsException when opening a project typically indicate corruption in the project file. Killing a build process without letting it exit is one way in which a project may become corrupted.
To resolve this issue, create a new project. When you open the project file with a text editor and search for the word ex :BuildAppliance/Virtual,Then, upon examining that section, you may notice that some parts are missing.

Once you find the appropriate missing property, if you compare the section with the original project xml file, you will see that chunk of sections are missing. This is what was causing the exception. Now, copy that entire element from the new project to your original project.

For Example:
Corrupted file:
<property name="virtualHardwareInformation">
<object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareInformation" objectID="7a696a669fce"/>
</property>
<property name="startupInfo">
<object class="com.flexera.ia.vapp.datastructures.VirtualSystemEntityStartupInfo" objectID="7a696a659fd7"> <property name="startupDelaySeconds">

The Actual Virtual appliance section is,

<property name="virtualHardwareInformation">
<object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareInformation" objectID="a7bf5d8ca5ac">
<property name="virtualHardwareProfileList">
<object class="java.util.ArrayList" list="true">
<method name="add">
<object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareProfile" objectID="a7bf5d8ca5ad">
<property name="profileId">
<string><![CDATA[A Virtual Machine]]></string>
</property>
<property name="profileDescription">
<string><![CDATA[Ubuntu 12.0 Linux]]></string>
</property>
<property name="hardwareItems">
<object class="java.util.ArrayList" list="true">
<method name="add">
<object class="com.flexera.ia.vapp.datastructures.hardware.VirtualCPU" objectID="a7bf5d8ba5ae">
<property name="id">
<int>53</int>
</property>

 

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎May 31, 2024 03:19 AM
Updated by:
Contributors