IBM Support

PI40088: PRODUCER-FIELD FOR ENTITYMANAGER LEADS TO EXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Declaring an injected entity manager field as producer results
    in the following exception:
    javax.ejb.NoSuchEJBException: An error occurred during
    initialization of singleton session bean
    
    nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at
    com.ibm.ws.webbeans.services.ResourceInjectionServiceImpl.getRes
    ourceReference(ResourceInjectionServiceImpl.java:481)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using CDI                            *
    ****************************************************************
    * PROBLEM DESCRIPTION: Producer fields containing an           *
    *                      EntityManager produce nulls instead     *
    *                      of EntityManager                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A field annotated with @Produces and containing the the type
    EntityManager produces nulls.
    

Problem conclusion

  • A fallback code path was introduced to ensure that Contexts
    and Dependency Injection (CDI) could correctly get resource
    references in this situation.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.12 and 8.5.5.8.  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

    PI40088

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-04-29

  • Closed date

    2015-08-12

  • Last modified date

    2015-08-12

  • 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

  • R800 PSY

       UP

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

Document Information

Modified date:
28 April 2022