Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301282

JMX simple and delegation security samples don't work because of missing access control entries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Delivered
    • P3
    • 21
    • None
    • docs

    Backports

      Description

        The JMX simple and delegation samples need additional access controls added to config/access.properties in order to run properly. Without them, the client will exit with the following exception:

        java.lang.SecurityException: Access denied! Invalid access level for requested MBeanServer operation.

        The username line in simple config/access.properties should be changed to:

        username readwrite \
                 create SimpleStandard \
                 unregister

        The username and delegate lines in delegation config/access.properties should be changed to:

        username readwrite \
                 create SimpleStandard \
                 unregister
        delegate readwrite \
                 create SimpleStandard \
                 unregister

        Attachments

          Issue Links

            Activity

              People

                shkamath Sheila Kamath
                mullan Sean Mullan
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: