NetWorker: Korean NMC GUI ArrayIndexOutOfBoundsException Error -1>=2
Summary: NetWorker for Windows issue: double clicking "Server db Backup" action in the Workflow Server Backup results in a popup error -1>=2 due to Java (Java) ArrayIndexOutOfBoundsException.
Symptoms
Issue Description
With the Korean Language Pack installed, when double clicking the "Server db Backup" Action, a popup error occurs.
The error message is -1>=2.
Error Details
java.lang.ArrayIndexOutOfBoundsException: -1 >= 2 at COM.legato.gst.GtArrayList.elementAt(GtArrayList.java:143) at COM.legato.gwt.components.GRadioPane.select(GRadioPane.java:186) at COM.legato.gwt.gtpanel.GtAttrListPanel.updateMeta(GtAttrListPanel.java:676) at COM.legato.gwt.gtpanel.JPanelGtObjectViewer.updateMeta(JPanelGtObjectViewer.java:118) at COM.legato.gwt.gtpanel.GtObjectPanel.updateMeta(GtObjectPanel.java:704) at COM.legato.gwt.gtpanel.GtObjectPanel.selectRadioInPanel(GtObjectPanel.java:812) at COM.legato.networker.protection.PolicyActionWizard$ChooseActionTypePage.preProcessPage(PolicyActionWizard.java:2326) at COM.legato.networker.protection.PolicyActionWizard.launchWizard(PolicyActionWizard.java:1265) at COM.legato.networker.protection.PolicyActionWizard.(PolicyActionWizard.java:294) at COM.legato.networker.protection.ProtectionNWPolicyNode
Cause
Root Cause Analysis
The issue is caused by a Java-related error, specifically an ArrayIndexOutOfBoundsException. This exception occurs when the code attempts to access an array element with an index that is outside the bounds of the array.
The error stack indicates that the issue arises from the COM.legato.gst.GtArrayList.elementAt method, which is called by various other methods in the COM.legato.gwt.components and COM.legato.gwt.gtpanel packages.
Relevant Error Messages
The error message "java.lang.ArrayIndexOutOfBoundsException: -1 >= 2" suggests that the code is trying to access an element at index -1, which is not a valid index for an array.
java.lang.ArrayIndexOutOfBoundsException: -1 >= 2 at COM.legato.gst.GtArrayList.elementAt(GtArrayList.java:143) at COM.legato.gwt.components.GRadioPane.select(GRadioPane.java:186) at COM.legato.gwt.gtpanel.GtAttrListPanel.updateMeta(GtAttrListPanel.java:676) at COM.legato.gwt.gtpanel.JPanelGtObjectViewer.updateMeta(JPanelGtObjectViewer.java:118) at COM.legato.gwt.gtpanel.GtObjectPanel.updateMeta(GtObjectPanel.java:704) at COM.legato.gwt.gtpanel.GtObjectPanel.selectRadioInPanel(GtObjectPanel.java:812) at COM.legato.networker.protection.PolicyActionWizard$ChooseActionTypePage.preProcessPage(PolicyActionWizard.java:2326) at COM.legato.networker.protection.PolicyActionWizard.launchWizard(PolicyActionWizard.java:1265) at COM.legato.networker.protection.PolicyActionWizard.(PolicyActionWizard.java:294) at COM.legato.networker.protection.ProtectionNWPolicyNode
External Factors
Code defect observed in the following NetWorker releases:
- 19.12.0.2 (and prior)
- 19.13.0.0 -> 19.13.0.1
Resolution
Upgrade NetWorker to the following releases (or later) for a code fix:
- 19.12.0.3
- 19.13.0.2
- 19.14.0.0
Additional Information
For further diagnosis, ensure that java console, logging and tracing are enabled to capture the error stack.
- NRE 17.x: How to Clear Java Cache, Enable Java Console, and Debugging
- NRE 8.x: How to clear Java Cache, enable Java Console and Debugging.
Review the error stack to identify the root cause of the issue.