IBM Support

PI54151: Unable to find the @Transactional annotation

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The @Transactional annotation is indicated in Stereotype.
    The
    following Exception can occur when a CDI managed bean method
    is
    called (it is added to the Stereotype).  According to the
    CDI
    1.1 spec, the CDI interceptor binding can be used in
    Stereotype. @Transactional is a CDI Interceptor binding.
    
    java.lang.Exception: Can't find @Transactional annotation in
    AroundInvoke for TxType.REQUIRED
    at
    com.ibm.tx.jta.cdi.interceptors.Required.required(Required.j
    ava:
    35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssor
    Impl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thod
    AccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:507)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of declarative Contexts and           *
    *                  Dependency Injection (CDI) transactions on  *
    *                  IBM WebSphere Application Server Liberty    *
    *                  Profile 8.5.5.6 upwards                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: "Can't find @Transactional annotation   *
    *                      in AroundInvoke" exception when nesting *
    *                      CDI transactional interceptors within   *
    *                      @Stereotype annotations                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a bean is annotated with an @Stereotype which contains an
    @Transactional annotation, the @Transactional interceptor code
    will fail to locate the binding.  This will cause an exception
    to be raised with an error message stating "Can't find
    @Transactional annotation in AroundInvoke".
    

Problem conclusion

  • The @Transactional interceptor code did not check through the
    tree of stereotypes attached to a bean to see if any of those
    stereotypes contained an interceptor binding. The code has been
    altered to traverse stereotypes and look for @Transactional
    annotations.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.9.  Please refer to the Recommended Updates page for
    delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Currently, the only available workaround is to avoid using
    stereotypes to attach @Transactional interceptor bindings to a
    class, and to instead attach the @Transactional annotation
    directly.
    

Comments

APAR Information

  • APAR number

    PI54151

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-12-15

  • Closed date

    2016-01-04

  • Last modified date

    2016-01-04

  • 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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
28 April 2022