IBM Support

PM42600: CDI PROBLEMS WITH EE INJECTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Exceptions with CDI injection into EE objects
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  8.0                                         *
    *                  users of Context and Dependency Injection   *
    *                  (CDI)                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Injection and runtime operation of JEE  *
    *                      resources in CDI beans will not work in *
    *                      certain scenarios outlined below.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    This APAR addresses the following issues with CDI:
    1) An IllegalStateException  caught when invoking an injected
    resource should be propogated to the caller.
    2) CDI should not proxy or subclass final classes.
    3) A zero argument initializer method throws a null pointer
    exception during CDI bean creation.
    4) Injected JPA EntityManagerFactory resources do not serialize
    and deserialize correctly.
    5) CDI beans cannot inject resources with the mappedName
    attribute.
    

Problem conclusion

  • The following fixes were made:
    1) ResourceProxyHandler.invoke unwraps and throws the
    underlying cause of the InvocationTargetException.
    2) CDI container no longer proxies serializable resources
    injected into CDI beans. CDI should only proxy non serializable
    injected JEE resources.
    3) CDI container and the WebSphere Application Server Injection
    engine have been enhanced to support zero argument initalizer
    methods.
    4) CDI container and the WebSphere Application Server JPA
    container code has been modified to support correct
    behavior during serialization and deserialization of JPA
    EntityManagerFactory resources.
    5))CDI container and the WebSphere Application Server Injection
    engine have been modified to tolerate the presence of
    mappedName resource injections in CDI beans such as
    @Resource(mappedName="java:comp/BeanManager").
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.1.  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

    PM42600

  • 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-06-28

  • Closed date

    2011-08-19

  • Last modified date

    2011-08-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:
27 October 2021