IBM Support

PH05014: NULL CDI BEAN RESULTS IN A NULLPOINTEREXCEPTION THROWN IN APACHE WEBBEANS CODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using JAX-RS and CDI, the following NullPointerException
    is seen in Apache Webbeans code.
    java.lang.NullPointerException: null
    at
    org.apache.webbeans.context.creational.CreationalContextImpl.get
    EjbInterceptor(CreationalContextImpl.java:147)
    [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.InterceptorDataImpl.createNewInsta
    nce(InterceptorDataImpl.java:466) [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.InvocationContextImpl.proceedAroun
    dInvokes(InvocationContextImpl.java:251)
    [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.InvocationContextImpl.proceed(Invo
    cationContextImpl.java:202) [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler
    .callAroundInvokes(NormalScopedBeanInterceptorHandler.java:111)
    [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.InterceptorHandler.invoke(Intercep
    torHandler.java:271) [org.apache.webbeans.jar:?]
    at
    org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler
    .invoke(NormalScopedBeanInterceptorHandler.java:99)
    [org.apache.webbeans.jar:?]
    The problem usually occurs in the first call of the
    application.  Restarting the application usually solves the
    problem.   The null object is a CDI bean.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A null ejbInterceptor causes            *
    *                      NullPointerException                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    JAX-RS was registering a null ejbInterceptor, which caused a
    null pointer exception when CDI processed the list of EJB
    interceptors
    

Problem conclusion

  • A null check was added to the loop where CDI processed the
    list of EJB interceptors.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.16 and liberty 19.0.0.10.  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

    PH05014

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-07

  • Closed date

    2019-08-29

  • Last modified date

    2019-08-29

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

Document Information

Modified date:
28 April 2022