IBM Support

PH06135: JSF 2.0 throws a NullPointerException during server shutdown

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Users of WebSphere Liberty jsf-2.0 might notice a
    NullPointerException logged during server shutdown.  The
    exception will have a similar stack:
    
    FFDC1015I: An FFDC Incident has been created:
    "java.lang.NullPointerException: type
    com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDe
    stroyed 1405" at ffdc_...
    SRVE0285E: Exception caught while destroying context:
    java.lang.NullPointerException: type
    at
    org.apache.myfaces.shared_impl.util.ClassUtils.classForName(
    ClassUtils.java:180)
    at
    org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassFo
    rName(ClassUtils.java:224)
    at
    com.ibm.ws.jsf.ext.LibertyWebConfigProvider.getFacesServletM
    appings(LibertyWebConfigProvider.java:69)
    at
    org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFa
    ces(AbstractFacesInitializer.java:290)
    at
    org.apache.myfaces.webapp.StartupServletContextListener.cont
    extDestroyed(StartupServletContextListener.java:153)
    at
    com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDe
    stroyed(WebApp.java:2602)
    at
    com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java:39
    37)
    ...
    
    This exception occurs because the JSF 2.0 code attempts to
    load a servlet class that has already been destroyed.  This
    exception causes no functional problems, and can be safely
    ignored.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  users of JavaServer Faces (JSF) Apache      *
    *                  MyFaces 2.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException is logged during *
    *                      server shutdown when JSF 2.0 is in use  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Users of WebSphere Liberty jsf-2.0 might notice a
    NullPointerException logged during server shutdown.  The
    exception will have a similar stack:
    
    SRVE0285E: Exception caught while destroying context:
    java.lang.NullPointerException: type
    	at
    org.apache.myfaces.shared_impl.util.ClassUtils.classForName(Clas
    sUtils.java:180)
    	at
    org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForNam
    e(ClassUtils.java:224)
    	at
    com.ibm.ws.jsf.ext.LibertyWebConfigProvider.getFacesServletMappi
    ngs(LibertyWebConfigProvider.java:69)
    	at
    org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(
    AbstractFacesInitializer.java:290)
    	at
    org.apache.myfaces.webapp.StartupServletContextListener.contextD
    estroyed(StartupServletContextListener.java:153)
    	at
    com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDestro
    yed(WebApp.java:2602)
    	at
    com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java:3937)
    ...
    
    This exception occurs because the JSF 2.0 code attempts to load
    a servlet class that has already been destroyed.  The exception
    causes no functional problems, and can be safely ignored
    

Problem conclusion

  • The Liberty JSF 2.0 code was updated to avoid attempting to load
    classes which have already been destroyed.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 19.0.0.1.  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

    PH06135

  • 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

    2018-12-04

  • Closed date

    2018-12-20

  • Last modified date

    2018-12-20

  • 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

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
14 October 2021