IBM Support

PM51619: APPLICATION WITH @STARTUP ANNOTATION AND CDI FAILS WITH NPE DURI NG APPLICATION START

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Following exception seen
    
    Caused by: javax.ejb.NoSuchEJBException: An error occurred
    during initialization of singleton session bean
    APP#EJB.jar#Loader, resulting in the
    discarding of the singleton instance.; nested exception is:
    java.lang.NullPointerException
    Caused by: java.lang.NullPointerException
    at
    com.ibm.ws.webbeans.services.JCDIComponentImpl.newInstanceWithCo
    nstructorInjection(JCDIComponentImpl.java:1058)
    at
    com.ibm.ws.runtime.component.WASJCDIHelper.newInstanceWithConstr
    uctorInjection(WASJCDIHelper.java:108)
    at
    com.ibm.ejs.container.EJSHome.createSingletonBeanO(EJSHome.java:
    4983)
    at
    com.ibm.ejs.csi.EJBApplicationMetaData.createStartupBeans(EJBApp
    licationMetaData.java:971)
    at
    com.ibm.ejs.csi.EJBApplicationMetaData.startedModule(EJBApplicat
    ionMetaData.java:695)
    at
    com.ibm.ws.runtime.component.EJBContainerImpl.stateChanged(EJBCo
    ntainerImpl.java:5501)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(App
    licationMgrImpl.java:1083)
    

Local fix

  • If project contains the beans.xml deleting beans.xml will
    workaround the issue
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  8.0 users of Contexts and Dependency        *
    *                  Injection (CDI) and Enterprise JavaBeans    *
    *                  (EJBs)                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException is thrown during *
    *                      application start of an EJB module that *
    *                      contains an @Startup EJB and a          *
    *                      beans.xml.                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The CDI container is not initialized when the @Startup EJBs are
    starting, which leads to an NullPointerException when the EJB
    Container calls into CDI for constructor injection.
    

Problem conclusion

  • Prevented CDI from attempting to do constructor injection when
    the container is not yet started.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.3.  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

    PM51619

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-04

  • Closed date

    2011-12-19

  • Last modified date

    2011-12-19

  • 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

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

Document Information

Modified date:
28 October 2021