IBM Support

PH44627: NPE in JSP after 21.0.0.7 when skipMetaInfResourcesProcessing=true

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 under WEB-INF and web container property
    skipMetaInfResourcesProcessing=true.
    
    Previously, there would just be a file not found message for
    referring
    to a file suppressed by
    skipMetaInfResourcesProcessing=true, but now there might
    also be NPE.
    
    java.lang.NullPointerException
            at java.base/java.io.File.<init>(File.java:278)
    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 91.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - JavaServer Pages (JSP)     *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException in JSP with        *
    *                      WebContainer property                   *
    *                      skipMetaInfResourcesProcessing=true     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    NullPointerException can possibly occur when JSP includes files
    under WEB-INF and web container property
    skipMetaInfResourcesProcessing=true.
    
    Previously, there would just be a file not found message for
    referring to a file suppressed by
    skipMetaInfResourcesProcessing=true, but now there might also be
    NPE.  The levels of Liberty affected are 21.0.0.7 through
    22.0.0.3.
    
    java.lang.NullPointerException
            at java.base/java.io.File.<init>(File.java:278)
            at
    com.ibm.ws.jsp.webcontainerext.JspDependent.isOutdated(JspDepend
    ent.java:84)
            at
    com.ibm.ws.jsp.webcontainerext.JspDependent.toString(JspDependen
    t.java:129)
    ...
    

Problem conclusion

Temporary fix

  • Correct the include or taglib statement to use a file outside of
    WEB-INF or change WebContainer property
    skipMetaInfResourcesProcessing to false.
    

Comments

APAR Information

  • APAR number

    PH44627

  • 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-03-03

  • Closed date

    2022-03-11

  • Last modified date

    2022-03-11

  • 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:
12 March 2022