IBM Support

PH03268: NPE AT JSF INITIALIZATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • NPE occurs at the point of JSF initialization at the time of
    application server startup.
    The problem occur at only one member of same cluster's 3
    member. Only cluster members on a specific server,it occur
    100%...
    Even deleting class and osgi cache and restarted had not
    resolved.
    Extract of stack at NPE is following:
    -------------------------------------
    [8/28/18 17:02:53:997 JST] 000000a6 DefaultFacesC I Reading
    config /WEB-INF/faces-config.xml
    [8/28/18 17:02:57:475 JST] 000000a6 AbstractFaces E An error
    occured while initializing MyFaces:
    java.lang.NullPointerException
    javax.faces.FacesException: java.lang.NullPointerException
    at
    org.apache.myfaces.config.DefaultFacesConfigurationProvider.getC
    lassloaderFacesConfig(DefaultFacesConfigurationProvider.java:342
    )
    at
    org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFac
    esConfigData(DefaultFacesConfigurationMerger.java:101)
    ...
    Caused by: java.lang.NullPointerException
    at
    org.apache.myfaces.view.facelets.util.Classpath._searchDir(Class
    path.java:143)
    at
    org.apache.myfaces.view.facelets.util.Classpath._searchResource(
    Classpath.java:115)
    at
    org.apache.myfaces.view.facelets.util.Classpath.search(Classpath
    .java:68)
    -------------------------------------
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of JavaServer Faces (JSF) in          *
    *                  WebSphere Application Server versions       *
    *                  8.5.5 and 9.0, as well as users of JSF in   *
    *                  WebSphere Liberty.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: JSF application initialization fails    *
    *                      due to a NullPointerExeption thrown     *
    *                      during startup                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In rare cases, a JSF utility class -
    org.apache.myfaces.view.facelets.util.Classpath - will throw a
    NullPointerExeption and cause application startup to fail.
    The following exception will be seen:
    DefaultFacesC I Reading config /WEB-INF/faces-config.xml
    AbstractFaces E An error occured while initializing MyFaces:
    java.lang.NullPointerException
    javax.faces.FacesException: java.lang.NullPointerException
    ....
    Caused by: java.lang.NullPointerException
    at
    org.apache.myfaces.view.facelets.util.Classpath._searchDir(Class
    path.java:143)
    at
    org.apache.myfaces.view.facelets.util.Classpath._searchResource(
    Classpath.java:115)
    at
    org.apache.myfaces.view.facelets.util.Classpath.search(Classpath
    .java:68)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH03268

  • 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

    2018-09-25

  • Closed date

    2018-10-15

  • Last modified date

    2018-10-17

  • 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

  • R850 PSY

       UP

[{"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:
28 April 2022