EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

EGL Debug error: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 128

  • 1.  EGL Debug error: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 128

    Posted Wed August 10, 2016 11:23 AM

    Hi Forum.

    I'm receiving this EGL error when i debug a simple program:

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

    A simple test project is included in attachment.

    (program to debug: prog1.egl)

     

    This problem occures in RBD v9.5

    Thanks for the assistance.

    Niek_Vandael


  • 2.  Re: EGL Debug error: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 128

    Posted Thu August 11, 2016 06:44 PM

    Hi Niek,

     

    What is RBD version installed ?

    maybe you have an error in your scan logic array field.

    You can use in de build option CHECKINDEX

    http://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.0/com.ibm.egl.gg.doc/topics/gegl_core_check_indices.html

     

    Hsieh

    Hsieh


  • 3.  Re: EGL Debug error: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 128

    Posted Fri August 12, 2016 03:03 AM

    Hi Hsieh,

     

    We're using RBD v9.5. (i have just edited this in the question for further reference, thanks for pointing out)

    The solution you are providing is valid for COBOL generation, not for java generation.
    And, if it would be valid for Java, it would lead to 'unpredictable results' (quote from the site you provided), we would not like that in our software...

     

    We are in contact with IBM via a PMR for this problem, they acknowledged the problem and are working on a fixtest.

     

    Niek

     

     

     

    Niek_Vandael


  • 4.  Re: EGL Debug error: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 128

    Posted Fri August 12, 2016 05:06 PM

    Hi Niek,

     

    I watch the egl source and I think the record

    record chcurbl_list_basic type basicrecord

        control_rows_to_fetch_number smallint;
        control_returned_length smallint;
        detail_data chcurbl_detail_data_basic[0];
    end

    without array length is not permited.

     

     

    Hsieh