IBM Support

PI41369: USING @INJECT @ANY CAUSES ERRORS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Some of the following errors can be seen when using the @Inject
    @Any annotation
    
    ==============================
    
    
    [11/25/14 17:20:35:082 CET] 0000001d InjectInjecti I
    CWOWB0102E: A JCDI error has occurred
    
    
    [11/25/14 17:21:00:050 CET] 0000002b LocalExceptio E
    CNTR0020E: EJB threw an unexpected (non-declared) exception
    during invocation of method "test" on bean
    "BeanId(pmr26393cdi#websphere-error-0.0.1-SNAPSHOT.jar#StartInst
    anceQualifierErrorTest, null)". Exception data:
    java.lang.NullPointerException
    at
    de.gehe.websphere.instancequalifiererror.StartInstanceQualifierE
    rrorTest.test(StartInstanceQualifierErrorTest.java:30)
    
    
    ===============================
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0 and V8.5 Contexts and           *
    *                  Dependency Injection (CDI)                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: CDI may inject the wrong bean when      *
    *                      two beans output identical results      *
    *                      from toString()                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The wrong bean is being injected and a custom toString()
    method is written on at least two classes giving identical
    output
    

Problem conclusion

Temporary fix

  • Modify the toString methods to give unique results
    

Comments

APAR Information

  • APAR number

    PI41369

  • 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-05-19

  • Closed date

    2015-10-28

  • Last modified date

    2015-10-28

  • 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