Fixes are available
8.5.5.4: WebSphere Application Server V8.5.5 Fix Pack 4
8.5.5.5: WebSphere Application Server V8.5.5 Fix Pack 5
8.5.5.6: WebSphere Application Server V8.5.5 Fix Pack 6
8.5.5.7: WebSphere Application Server V8.5.5 Fix Pack 7
8.5.5.8: WebSphere Application Server V8.5.5 Fix Pack 8
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.14: WebSphere Application Server V8.5.5 Fix Pack 14
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
EJB sessionContext.getCallerPrincipal() call not working in asynchbeans in WebSphere Application Server V8.5. The following exception is thrown: java.lang.NullPointerException at com.ibm.ejs.container.BeanO.getCallerPrincipal (BeanO.java:847) at com.ibm.ejs.container.BeanO.getCallerPrincipal (BeanO.java:841) at com.ibm.ejs.container.StatelessBeanO.getCallerPrincipal (StatelessBeanO.java:1107) at com.ibm.example.TestWork.run(TestWork.java:10) at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run (J2EEContext.java:269) at java.security.AccessController.doPrivileged (AccessController.java:229) at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:795) at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go (WorkWithExecutionContextImpl.java:222) at com.ibm.ws.asynchbeans.ABWorkItemImpl.run (ABWorkItemImpl.java:206) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All IBM WebSphere Application Server V8.5 * * users of EJB and Asynchbeans * **************************************************************** * PROBLEM DESCRIPTION: The getCallerPrincipal method cannot * * be called from an asynchbean context * **************************************************************** * RECOMMENDATION: * **************************************************************** The getCallerPrincipal method is only intended to be called from an Enterprise Java Beans (EJB) method, so the EJB container passes data from the current EJB method context to the security component to determine the caller principal. When getCallerPrincipal is called from an asynchbean context, there is no current EJB method context, so the EJB container throws a NullPointerException.
Problem conclusion
EJB container is updated to pass null to the security component when there is no current EJB method context, which causes UNAUTHENTICATED to be returned. The fix for this APAR is currently targeted for inclusion in fix pack 8.5.5.4. 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
PI23290
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2014-08-05
Closed date
2014-08-14
Last modified date
2014-11-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
WEBSPHERE APP S
Fixed component ID
5724J0800
Applicable component levels
R850 PSY
UP
Document Information
Modified date:
28 April 2022