IBM Support

PI69870: IllegalAccessException on EL expression that processes isLast() of object referencing varStatus in JSTL for-each tag

Fixes are available

16.0.0.4: WebSphere Application Server Liberty 16.0.0.4
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
17.0.0.1: WebSphere Application Server Liberty 17.0.0.1
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
17.0.0.2: WebSphere Application Server Liberty 17.0.0.2
17.0.0.3: WebSphere Application Server Liberty 17.0.0.3
17.0.0.4: WebSphere Application Server Liberty 17.0.0.4
18.0.0.1: WebSphere Application Server Liberty 18.0.0.1
18.0.0.2: WebSphere Application Server Liberty 18.0.0.2
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
18.0.0.3: WebSphere Application Server Liberty 18.0.0.3
18.0.0.4: WebSphere Application Server Liberty 18.0.0.4
19.0.0.1: WebSphere Application Server Liberty 19.0.0.1
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
19.0.0.2: WebSphere Application Server Liberty 19.0.0.2
19.0.0.3: WebSphere Application Server Liberty 19.0.0.3
19.0.0.4: WebSphere Application Server Liberty 19.0.0.4
19.0.0.5: WebSphere Application Server Liberty 19.0.0.5
19.0.0.6: WebSphere Application Server Liberty 19.0.0.6
19.0.0.7: WebSphere Application Server Liberty 19.0.0.7
19.0.0.8: WebSphere Application Server Liberty 19.0.0.8
19.0.0.9: WebSphere Application Server Liberty 19.0.0.9
19.0.0.10: WebSphere Application Server Liberty 19.0.0.10
19.0.0.11: WebSphere Application Server Liberty 19.0.0.11
19.0.0.12: WebSphere Application Server Liberty 19.0.0.12
20.0.0.1: WebSphere Application Server Liberty 20.0.0.1
20.0.0.2: WebSphere Application Server Liberty 20.0.0.2
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
20.0.0.3: WebSphere Application Server Liberty 20.0.0.3
20.0.0.4: WebSphere Application Server Liberty 20.0.0.4
20.0.0.5: WebSphere Application Server Liberty 20.0.0.5
20.0.0.6: WebSphere Application Server Liberty 20.0.0.6
20.0.0.7: WebSphere Application Server Liberty 20.0.0.7
20.0.0.8: WebSphere Application Server Liberty 20.0.0.8
20.0.0.9: WebSphere Application Server Liberty 20.0.0.9
20.0.0.10: WebSphere Application Server Liberty 20.0.0.10
20.0.0.11: WebSphere Application Server Liberty 20.0.0.11
20.0.0.12: WebSphere Application Server Liberty 20.0.0.12
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While migrating an application running under WebLogic towards
    WebSphere Application Server V8.5.5.10, we encounter an error
    with certain JSP pages.
    
    Here under the error stack:
    
    [02/09/16 14:29:19:735 CEST] 00000091 ServletWrappe E
    com.ibm.ws.
    webcontainer.servlet.ServletWrapper service SRVE0068E:
    
    One of the service methods of servlet [/test.jsp] generated an
    exception in application [App].
    Exception created: [javax.el.ELException:
    java.lang.IllegalAccessException: Class
    javax.el.BeanELResolver can not access a member of class
    javax.servlet.jsp.jstl.core.LoopTagSupport$1Status with
    modifiers "public"
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server versions   *
    *                  8.5.5, and 9.0 and Liberty                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: An Expression Language (EL)             *
    *                      expression that processes the call      *
    *                      of method isLast() of an object         *
    *                      referencing the varStatus in a JSTL     *
    *                      for-each tag, generates a               *
    *                      java.lang.IllegalAccessException.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If the JSP file below is run, the following exception will
    be thrown:
    javax.el.ELException: java.lang.IllegalAccessException: Class
    javax.el.
    BeanELResolver can not access a member of class
    javax.servlet.jsp.jstl.
    core.LoopTagSupport$1Status with modifiers "public"
    JSP file generating the exception:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"
    %>
    <c:forEach items="${listOfValues}" var="entry"
    varStatus="statusVarExample">
    ${statusVarExample.isLast()}
    </c:forEach>
    Where ${statusVarExample.isLast()} triggers the exception.
    

Problem conclusion

  • The EL code was modified to correctly call public methods
    without throwing an exception.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.13 and 8.5.5.12 for WebSphere Application
    Server and 16.0.0.4 for WebSphere Application Server Liberty.
    Please refer to the Recommended Updates page for delivery
    information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI69870

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-09-28

  • Closed date

    2016-10-18

  • Last modified date

    2016-10-18

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

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

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R850 PSY

       UP

  • R900 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":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 April 2022