Fixes are available
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
In WebSphere Liberty profile, when the id attribute is missing from the authorization-roles element. In the log file you see: [12/9/14 10:32:21:355 GMT] 0000001e id= LogService-68-com.ibm.ws.security.authentication.builtin E CWWKE0701E: [com.ibm.ws.security.authentication.UnauthenticatedSubjectServic e(82)] The setSecurityService method has thrown an exception Bundle:com.ibm.ws.security.authentication.builtin(id=68) java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server Liberty Profile - Security * **************************************************************** * PROBLEM DESCRIPTION: When the id attribute is missing from * * the authorization-roles element, a * * NullPointerException is caught. * **************************************************************** * RECOMMENDATION: * **************************************************************** The code does not check whether the object is null. As a result, the following NullPointerException is caught. In this case, this object should not be null. [11/18/14 17:38:59:508 GMT] 0000001b LogService-116- com.ibm.ws.webcontainer.security.feature E CWWKE0701E: [com.ibm.ws.webcontainer.security.feature.internal.FeatureAuthor izationTable(90)] The activate method has thrown an exception Bundle:com.ibm.ws.webcontainer.security.feature(id=116) java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.ja va:260) at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.jav a:1003) at com.ibm.ws.webcontainer.security.feature.internal.FeatureWebSecu rityCollaboratorImpl.addAuthorizationTable(FeatureWebSecurityCol laboratorImpl.java:89) at com.ibm.ws.webcontainer.security.feature.internal.FeatureAuthori zationTable.processRolePids(FeatureAuthorizationTable.java:136) at com.ibm.ws.webcontainer.security.feature.internal.FeatureAuthori zationTable.processConfigProps(FeatureAuthorizationTable.java:12 7) at com.ibm.ws.webcontainer.security.feature.internal.FeatureAuthori zationTable.activate(FeatureAuthorizationTable.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor Impl.java:94)
Problem conclusion
With this fix, the code checks if the object is valid prior to accessing it. And if it is not valid, the error message is logged. The fix for this APAR is currently targeted for inclusion in fix pack 8.5.5.5. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=s wg27004980
Temporary fix
Comments
APAR Information
APAR number
PI31809
Reported component name
WAS LIBERTY COR
Reported component ID
5725L2900
Reported release
855
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2014-12-18
Closed date
2015-01-20
Last modified date
2015-01-20
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
WAS LIBERTY COR
Fixed component ID
5725L2900
Applicable component levels
R855 PSY
UP
Document Information
Modified date:
28 April 2022