IBM Support

PH43530: NPE in JSP after 21.0.0.7

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

  • NullPointerException can possibly occur when JSP includes
    files that do no exist from taglib or include statements.
    
    Previously, there would just be a file not found message for
    referring
    to a non existent file, but now there might in some cases
    also be NPE.
    
    SRVE0777E: Exception thrown by application class
    'java.io.File.:277'
    java.lang.NullPointerException
    at java.io.File.(File.java:277)
    at
    com.ibm.ws.jsp.webcontainerext.JspDependent.isOutdated(JspDe
    pendent.java:84)
    at
    com.ibm.ws.jsp.webcontainerext.JspDependent.toString(JspDepe
    ndent.java:129)
    ...
    
    MDV issue is 85 (https://github.ibm.com/WASL3/MDV/issues/85)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - JavaServer Pages (JSP)     *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException in JSP             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When JSP refers to a file in a <%@ taglib %> statement that
    doesn't exist, in addition to the file not found error, in some
    cases there will also be a NullPointerException:
    SRVE0777E: Exception thrown by application class
    'java.io.File.:277'
    java.lang.NullPointerException
    at java.io.File.(File.java:277)
    at
    com.ibm.ws.jsp.webcontainerext.JspDependent.isOutdated(JspDepend
    ent.java:84)
    ...
    

Problem conclusion

Temporary fix

  • Correct the taglib in question, by either referring to a file
    that actually exists, or remove the taglib statement entirely.
    

Comments

APAR Information

  • APAR number

    PH43530

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-01-21

  • Closed date

    2022-01-27

  • Last modified date

    2022-01-27

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

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

Document Information

Modified date:
28 January 2022