IBM Support

PI96800: CDI RESOURCE INJECTION DOES NOT WORK FOR MANAGEDEXECUTORSERVICE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The customer has a CDI bean where they would like to inject a
    ManagedExecutorService. However, this is leading to
    org.jboss.weld.exceptions.IllegalArgumentException: CWOWB1007E
    .
    

Local fix

  • Use an additional indirection via the java:app namespace
    having an EJB binding the ManagedExecutorService to the
    java:app namespace.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: IllegalArgumentException thrown when    *
    *                      attempting to @Inject a Java EE         *
    *                      default resource                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The application server registers Java EE default resources as
    type java.lang.Object instead of the specific object class,
    which works for JNDI lookups and @Resource injection but does
    not work for CDI injection.
    

Problem conclusion

  • Java EE default resources are now registered as the proper
    object type, which allows them to be injected with @Resource
    or @Inject.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.0.9.  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

    PI96800

  • 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

    2018-04-16

  • Closed date

    2018-08-16

  • Last modified date

    2018-08-16

  • 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

  • R900 PSY

       UP

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

Document Information

Modified date:
19 October 2021