IBM Support

PH49514: JSP TAGLIB OBJECTS NOT CLEANED UP PROPERLY

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • JSP taglib objects not cleaned up properly when exception occurs
    in either doStartTag or doEndTag method
    

Local fix

  • If all dependent JSP tag libraries do not use CDI annotations,
    one can workaround the issue by setting JSP engine property
    disableResourceInjection=true
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of Java Server Pages (JSP) in WAS 9   *
    *                  and in Open Liberty                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A memory leak, caused by an             *
    *                      accumulation of JSP Tag objects, may    *
    *                      occur in the webcontainer component.    *
    *                      Example scenarios where a leak may      *
    *                      occur:                                  *
    *                      1) <c:redirect> or <jsp:forward> tags   *
    *                      following a <c:if> or <c:when>          *
    *                      2) An exception occurs in the JSP tag   *
    *                      methods, such as doStartTag or          *
    *                      doEndTag.                               *
    *                      The generated JSP servlet               *
    *                      inadvertently skips clean-up code       *
    *                      which removes the objects from the      *
    *                      internal map, thus creating a leak.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The JSP servlet generation code has been modified to clean up
    the JSP tag objects and avoid further leaks. This fix also
    minimizes the changes to the length of the _jspService method
    size to prevent existing large JSPs from exceeding the 65k
    method byte limit.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH49514

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-09-14

  • Closed date

    2023-08-31

  • Last modified date

    2024-01-08

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

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

Document Information

Modified date:
09 January 2024