IBM Support

PH37788: USE FIRST FOUND EJBDESCRIPTOR FOR MDB

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

  • Use first found EjbDescriptor for MDB, getting CNTR0019E
    error or some other errors and warning similar to these:
    
    
    CDIEJBManaged W  Found the following EjbDescriptor null for
    ejbName MyListener but it did not produce a bean or produced
    the wrong bean
    
    CDIEJBManaged E  Could not find an EjbDescriptor for :
    MyListener
    
    LocalExceptio E  CWWEC0019E: EJB threw an unexpected
    (non-declared) exception during invocation of method
    "onMessage". Exception data: java.lang.NullPointerException
    
       at
    com.ibm.ws.cdi.impl.managedobject.CDIEJBManagedObjectFactoryImpl
    .createContext(CDIEJBManagedObjectFactoryImpl.java:82)
       at
    com.ibm.ejs.container.ManagedBeanOBase.createInterceptorsAndInst
    ance(ManagedBeanOBase.java:191)
       at
    com.ibm.ejs.container.MessageDrivenBeanO.initialize(MessageDrive
    nBeanO.java:153)
       at
    com.ibm.ejs.container.BeanOFactory.create(BeanOFactory.java:105)
       at
    com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:976)
       at
    com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1078)
       at
    com.ibm.ejs.container.activator.UncachedActivationStrategy.atAct
    ivate(UncachedActivationStrategy.java:63)
       at
    com.ibm.ejs.container.activator.Activator.preInvokeActivateBean(
    Activator.java:264)
       at
    com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContaine
    r.java:3242)
       at
    com.ibm.ejs.container.EJSContainer.preInvokeMdbActivate(EJSConta
    iner.java:2758)
       at
    com.ibm.ws.ejbcontainer.mdb.MessageEndpointBase.beforeDelivery(M
    essageEndpointBase.java:1021)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - Contexts and Dependency    *
    *                  Injection (CDI)                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException during invocation  *
    *                      of Message Driven Bean                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    You will see an error such as CNTR0019E: EJB threw an unexpected
    (non-declared) exception during invocation of method
    "onMessage". Exception data: java.lang.NullPointerException when
    running an application that uses CDI and message driven beans.
    

Problem conclusion

  • Code was added to allow CDI to recognise that MDBs should not
    return a bean from an ejbDescriptor and allow CDI to work
    regardless.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 9.0.5.9 and liberty 21.0.0.7 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

    PH37788

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-06-02

  • Closed date

    2021-09-01

  • Last modified date

    2022-04-25

  • 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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0"}]

Document Information

Modified date:
26 April 2022