IBM Support

PI31809: CWWKE0701E WHEN SECURITY ID VALUE IS NULL

Subscribe

You can track all active APARs for this component.

 

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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022