IBM Support

PI52851: Changing JavaServer Pages (JSP) features between requests can re sult in a java.lang.NullPointerException.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the jsp-2.3 feature is enabled and a JSP request is
    made, the request is successful.  However, if the server
    feature is then changed to jsp-2.2 and another request is
    made to the same JSP file a NullPointerException will occur.
    The "Caused by" exception stack is:
    Caused by: java.lang.NullPointerException
    at
    org.apache.jasper.runtime.ProtectedFunctionMapper.mapFunctio
    n(ProtectedFunctionMapper.java:148)
    at com.ibm._jsp._test.<clinit>(_test.java:90)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at
    java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - JavaServer Pages   *
    *                  (JSP)                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Changing JavaServer Pages (JSP)         *
    *                      features between requests can result in *
    *                      a NullPointerException.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the jsp-2.3 feature is enabled and an initial request is
    made to a JSP file, the request is successful.  However, if the
    server feature is then changed to jsp-2.2 and another request is
    made to the same JSP file a java.lang.NullPointerException will
    occur in the "Caused by" section of the exception stack.
    An example of the exception thrown is:
    java.lang.ExceptionInInitializerError
            at
    java.lang.J9VMInternals.initialize(J9VMInternals.java:259)
            at java.lang.Class.forNameImpl(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at
    com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrappe
    r._checkForTranslation(AbstractJSPExtensionServletWrapper.java:3
    65)
            at
    com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrappe
    r.checkForTranslation(AbstractJSPExtensionServletWrapper.java:25
    7)
            at
    com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.fin
    dWrapper(AbstractJSPExtensionProcessor.java:506)
            at
    com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.get
    ServletWrapper(AbstractJSPExtensionProcessor.java:350)
    Caused by: java.lang.NullPointerException
    	at
    org.apache.jasper.runtime.ProtectedFunctionMapper.mapFunction(Pr
    otectedFunctionMapper.java:148)
    	at com.ibm._jsp._test.<clinit>(_test.java:90)
    	at java.lang.J9VMInternals.initializeImpl(Native Method)
    	at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
    

Problem conclusion

  • The JSP engine was modified to determine the JSP feature version
    a JSP file was previously compiled with and compared to the JSP
    feature version the server is currently running.  If they do not
    match then a re-translation and re-compilation will occur.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.9.  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

    PI52851

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-11-19

  • Closed date

    2015-11-23

  • Last modified date

    2015-11-23

  • 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

  • R855 PSY

       UP

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

Document Information

Modified date:
28 April 2022