IBM Support

PM92495: THE JSP COMPILATION IS GENERATING AN JAVA.LANG.ARRAYINDEXOUTOFBOUNDSEXCEPT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A JavaServer Pages (JSP( failed to compile due to an
    ArrayIndexOutOfBoundsException.
    

Local fix

  • - Redeploy the application using pre-compile options enabled
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All IBM WebSphere Application Server        *
    *                  Liberty Profile users of JavaServer Pages   *
    *                  (JSP).                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A JSP file containing an Expression     *
    *                      Language (EL) expression can fail with  *
    *                      an ArrayIndexOutOfBoundsException.      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An ArrayIndexOutOfBoundsException can occur if the EL
    expression is immediately after a custom tag.
    For example, the following text in a JSP file:
    <a title="<c:out value='TEST'/>${i}" href="link" >test</a>
    Will result in the exception below:
    java.lang.ArrayIndexOutOfBoundsException: Array index out of
    range:
    -1
    at
    com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.getE
    LExpressions(ValidateVisitor.java:1696)
    at
    com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visi
    tJspELTextStart(ValidateVisitor.java:1227)
    at
    com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visi
    tCDataTag(ValidateVisitor.java:822)
    at
    com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(J
    spVisitor.java:299)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM92495

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-07-08

  • Closed date

    2013-07-08

  • Last modified date

    2014-12-08

  • APAR is sysrouted FROM one or more of the following:

    PM85512

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
12 January 2022