IBM Support

PH33712: CHECK PACKAGE NAME WHEN INJECTING EJBS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Check package name when injecting EJBs
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: CDIEJBManagedObjectFactoryImpl throws   *
    *                      exception                               *
    *                      java.lang.IllegalStateException:        *
    *                      Managed Class {package.ExampleClass}    *
    *                      does not match Bean Class               *
    *                      {different.package.ExampleClass}        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    CDIEJBManagedObjectFactoryImpl acquires a Class by it's name
    alone and thus it can confuse two classes with the same name
    resulting in the follwing
    exception: CDIEJBManagedObjectFactoryImpl throws exception
    java.lang.IllegalStateException: Managed Class
    {package.ExampleClass} does not match Bean Class
    {different.package.ExampleClass}
    

Problem conclusion

  • This problem was caused by an iterator searching the wrong
    archive first and thus getting the wrong class. Because
    CDIEJBManagedObjectFactoryImpl knew what class it was looking
    for, the search has been reworked so if it finds the wrong
    bean it will continue searching through archives
    
    The fix for this APAR is targeted for inclusion in fix pack
    9.0.5.8. 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

    PH33712

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-01-22

  • Closed date

    2021-02-23

  • Last modified date

    2021-02-23

  • 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

[{"Line of Business":{"code":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900"}]

Document Information

Modified date:
27 February 2021