Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-235

XnioWorker.shutDownTaskPool() needs 'modifyThread' permission

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.13.GA, 3.3.0.Beta5
    • 3.0.12.GA
    • api
    • None

    Description

      The exception in the initial description of REM3-183 is caused by XnioWorker.shutDownTaskPool() trying to shut down the thread pool without correct permissions. The ThreadPoolExecutor API docs (http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html) notes:

      "SecurityException - if a security manager exists and shutting down this ExecutorService may manipulate threads that the caller is not permitted to modify because it does not hold RuntimePermission("modifyThread"), or the security manager's checkAccess method denies access."

      That method should use a doPrivileged() block.

      Attachments

        Issue Links

          Activity

            People

              dlloyd@redhat.com David Lloyd
              rhn-support-jlivings James Livingston (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: