Fixes are available
8.5.5.9: WebSphere Application Server V8.5.5 Fix Pack 9
8.5.5.10: WebSphere Application Server V8.5.5 Fix Pack 10
8.5.5.11: WebSphere Application Server V8.5.5 Fix Pack 11
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21
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
Document Information
Modified date:
28 April 2022