IBM Support

ERROR: java.lang.ArrayIndexOutOfBoundsException, when executing a test script

Troubleshooting


Problem

This technote explains why the error, "java.lang.ArrayIndexOutOfBoundsException: Array index out of range", occurs when using IBM® Rational® ClearQuest® TestManager (CQTM) for test execution.

Symptom

When executing a configured test case (CTC), this error occurs:

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1


The error happens at the beginning of the execution, and may only occur with older CTC records.

Cause

There are corrupt references in the CTC record.

Environment

This can happen when executing Robot scripts from the ClearQuest RCP client, or executing scripts via the ClearQuest perspective of Manual Tester and Functional Tester.

Resolving The Problem

Copy the CTC under the same or another test case. Essentially, the CTC may need to be recreated in order to repair the corrupt references.

The following actions may also resolve the error:

  1. Remove the script from the test case and from the configured test case.
  2. Associate the script again to the test case and configured test case.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: IBM - CQTM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.1;7.0.1.1;7.0.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Client - Eclipse RCP","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.1;7.0.1.1;7.0.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSJMXE","label":"IBM Rational Functional Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"CQTM Integration","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.1;7.0.1.1;7.0.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSCM5S","label":"Rational Manual Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"CQTM Integration","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.1;7.0.1.1;7.0.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSHDX","label":"Rational Robot"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"IBM Integrations","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.1;7.0.1.1","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21290115