APAR status
Closed as program error.
Error description
NPE in com.ibm.ws.cdi.impl.managedobject.CDIEJBManagedObjectFac toryImpl.createContext
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server * **************************************************************** * PROBLEM DESCRIPTION: CDI will not create an EJBDescriptor * * for archive containing * * bean-discovery-mode=none. However * * MDBs are not CDI beans, this means * * that CDI will fail to create a * * managed object for MDBs in an archive * * with bean-discovery-mode=none. This * * leads to a NullPointerException in in * * com.ibm.ws.cdi.impl.managedobject.CDIEJ * * BManagedObjectFac * * toryImpl.createContext * **************************************************************** * RECOMMENDATION: * **************************************************************** You will see a NullPointerException with a stack similar to this one: java.lang.NullPointerException: Cannot invoke "org.jboss.weld.ejb.spi.EjbDescriptor.isMessageDriven()" because "ejbDescriptor" is null at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionU til.java:401) at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionU til.java:287) at com.ibm.ejs.container.BusinessExceptionMappingStrategy.mapExcept ion(BusinessExceptionMappingStrategy.java:349) at com.ibm.ejs.container.BusinessExceptionMappingStrategy.setUnchec kedException(BusinessExceptionMappingStrategy.java:521) at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedException(E JSDeployedSupport.java:421) at com.ibm.ejs.container.EJSContainer.preinvokeHandleException(EJSC ontainer.java:2654) at com.ibm.ejs.container.EJSContainer.EjbPreInvoke(EJSContainer.jav a:2435) at com.ibm.ws.cdi.ejb.apps.ejbdiscovery.none.EJSLocal0SLUndiscovere dStatelessBean_8678189b.test(EJSLocal0SLUndiscoveredStatelessBea n_8678189b.java) at com.ibm.ws.cdi.ejb.apps.ejbdiscovery.servlet.DiscoveryServlet.te stCallNotDiscoveredBean(DiscoveryServlet.java:111)
Problem conclusion
We modified the code so that CDI will create the nessacary metadata to allow MDBs to work even in bean-discovery-mode=none The fix for this APAR is targeted for inclusion in fix pack 9.0.5.19. For more information, see 'Recommended Updates for WebSphere Application Server': https://www.ibm.com/support/pages/node/715553
Temporary fix
Comments
APAR Information
APAR number
PH56028
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-07-26
Closed date
2023-11-13
Last modified date
2023-11-13
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
WEBSPHERE APP S
Fixed component ID
5724J0800
Applicable component levels
[{"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:
14 November 2023