IBM Support

PI45373: THE 'CMP-FIELD' ELEMENTS OF EJB DEPLOYMENT DESCRIPTORS ARE IGNORED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Enterprise Java Bean (EJB) processing ignores 'cmp-field'
    elements of Container Managed Persistence (CMP) beans.
    
    When a new CMP is created, WebSphere Application Server should
    be cycling through the CMP field (<cmp-field>) elements defined
    in the ejb-jar.xml file and reinitializing them to null (or the
    primitive equivalent).
    
    Instead, it looks like bean instances are being retrieved from
    the pool (which is okay), but no field initialization is
    occurring, meaning that we end up with garbage data from the
    previous instance of the CMP.  This is especially problematic
    with the fields that store key information for linked CMPs.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Enterprise Java Bean (EJB) processing   *
    *                      ignores CMP fields of Container         *
    *                      Managed Persistence (CMP) beans.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When creating new Container Managed Persistence (CMP) beans,
    the CMP fields of the beans should be reinitialized to null or
    to the equivalent primative value.  CMP fields are defined
    using "cmp-field" elements in the EJB deployment descriptor,
    ejb-jar.xml.
    Reinitialization of CMP fields is not being performed. CMP
    fields are left with data from previous instances of the
    enclosing CMP beans.
    Retention of data from previous instances of CMP beans is
    especially problematic for CMP fields which store key
    information for linked CMP beans.
    

Problem conclusion

  • The problem occurred because the API used to retrieve CMP
    field metadata returned the wrong metadata.  The result was the
    return of an empty collection of CMP field metadata.  This
    meant that EJB processing would ignore CMP field
    initialization steps when creating new CMP beans.
    
    The problem was resolved by changing the API implementation
    to return the correct metadata.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.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

    PI45373

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-07-21

  • Closed date

    2015-08-19

  • Last modified date

    2015-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

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

Document Information

Modified date:
28 April 2022