Skip to Content

Why do I get the error message "java.lang.ArrayIndexOutOfBoundsException" ?

Estimated Reading Time: < 1 Minute

This error means that a Java array has been referenced out of its bounds.

In COBOL programs it usually refers to an OCCURS data item that it referenced outside of its occurrences.

i.e. consider having 77 data-item1 PIC X(10) OCCURS 10 and performing MOVE SPACES TO data-item1(11).
Why do I get the error message "java.lang.ArrayIndexOutOfBoundsException" ?

Powered by PHPKB (Knowledge Base Software)