IBM Support

PI99600: AccessControlException thrown when connecting to Health Center with Java 2 Security enabled

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When Java 2 Security is enabled, using logstashCollector-1.0
    with garbage collection events enabled or healthAnalyzer-1.0
    results in the following error in the FFDC logs directory:
    
    java.security.AccessControlException: Access denied
    ("java.lang.RuntimePermission" "preferences")
    	at
    java.security.AccessController.throwACE(AccessController.jav
    a:157)
    	at
    java.security.AccessController.checkPermissionHelper(AccessC
    ontroller.java:217)
    	at
    java.security.AccessController.checkPermission(AccessControl
    ler.java:349)
    	at
    java.lang.SecurityManager.checkPermission(SecurityManager.ja
    va:562)
    	at
    java.util.prefs.Preferences.userRoot(Preferences.java:463)
    	at
    java.util.prefs.Preferences.userNodeForPackage(Preferences.j
    ava:379)
    	at
    com.ibm.java.diagnostics.common.datamodel.impl.preferences.P
    referencesHelper.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.impl.datatruncation.Da
    taStoragePreferenceHelper.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.impl.marshalling.Marsh
    allerImpl.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.api.factory.HealthCent
    erFactory.localConnect(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.api.factory.HealthCent
    erFactory.connect(Unknown Source)
    	at
    com.ibm.ws.health.center.proxy.HCConnectorImpl.connect(HCCon
    nectorImpl.java:53)
    	at
    com.ibm.ws.health.center.classloader.HCClassLoader.activate(
    HCClassLoader.java:160)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - Liberty Log Analytics and  *
    *                  Monitoring                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: AccessControlException thrown when      *
    *                      connecting to Health Center with Java 2 *
    *                      Security enabled                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When Java 2 Security is enabled, logstashCollector-1.0 with
    garbage collection events and healthAnalyzer-1.0 will not
    correctly retrieve garbage collection information due to an
    AccessControlException.
    
    The following error is generated in the FFDC logs directory:
    
    java.security.AccessControlException: Access denied
    ("java.lang.RuntimePermission" "preferences")
    	at
    java.security.AccessController.throwACE(AccessController.java:15
    7)
    	at
    java.security.AccessController.checkPermissionHelper(AccessContr
    oller.java:217)
    	at
    java.security.AccessController.checkPermission(AccessController.
    java:349)
    	at
    java.lang.SecurityManager.checkPermission(SecurityManager.java:5
    62)
    	at java.util.prefs.Preferences.userRoot(Preferences.java:463)
    	at
    java.util.prefs.Preferences.userNodeForPackage(Preferences.java:
    379)
    	at
    com.ibm.java.diagnostics.common.datamodel.impl.preferences.Prefe
    rencesHelper.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.impl.datatruncation.DataSt
    oragePreferenceHelper.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.impl.marshalling.Marshalle
    rImpl.<init>(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.api.factory.HealthCenterFa
    ctory.localConnect(Unknown Source)
    	at
    com.ibm.java.diagnostics.healthcenter.api.factory.HealthCenterFa
    ctory.connect(Unknown Source)
    	at
    com.ibm.ws.health.center.proxy.HCConnectorImpl.connect(HCConnect
    orImpl.java:53)
    	at
    com.ibm.ws.health.center.classloader.HCClassLoader.activate(HCCl
    assLoader.java:160)
    

Problem conclusion

  • Additional permissions were granted to allow Liberty to connect
    to the Health Center agent.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 18.0.0.3.  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

    PI99600

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-26

  • Closed date

    2018-06-28

  • Last modified date

    2018-06-28

  • 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

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
17 June 2020