Derby
  1. Derby
  2. DERBY-5582

Access denied (java.lang.RuntimePermission modifyThreadGroup) in IndexStatisticsDaemonImpl.schedule()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.8.3.0
    • Fix Version/s: 10.8.3.0
    • Component/s: Services
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      High Value Fix, Patch Available
    • Bug behavior facts:
      Regression

      Description

      I user reported this exception with 10.8.2.3 - (1212722) when running regression tests against 10.8.
      As soon as the Index Statistics Thread was initialized they got the stack trace below.

      There was some discussion of this issue on the dev list:
      http://old.nabble.com/Report-of-security-manager-issue-with-10.8-and-ndexStatisticsDaemonImpl.schedule-to33137398.html

      I assume the failure is in
      runningThread = new Thread(this, "index-stat-thread");

      Stack Trace:

      java.security.AccessControlException: Access denied
      (java.lang.RuntimePermission modifyThreadGroup)
      at
      java.security.AccessController.checkPermission(AccessController.java:108)
      at
      java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at
      com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at
      com.ibm.ws.security.core.SecurityManager.checkAccess(SecurityManager.java:407)
      at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:226)
      at java.lang.Thread.initialize(Thread.java:345)
      at java.lang.Thread.<init>(Thread.java:281)
      at java.lang.Thread.<init>(Thread.java:179)
      at
      org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.schedule(Unknown
      Source)
      at
      org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
      at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown
      Source)
      at
      org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
      Source)
      at
      org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
      at
      org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
      at
      org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
      at
      org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
      at
      org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
      at
      org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
      at
      org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
      at

      1. derby-5582_whitespace_diff.txt
        21 kB
        Kathey Marsden
      2. derby-5582_trunk_withtest_diff.txt
        12 kB
        Kathey Marsden
      3. derby-5582_trunk_withtest_diff.txt
        7 kB
        Kathey Marsden
      4. derby5582.policy
        0.1 kB
        Kathey Marsden
      5. MySecurityManager.java
        0.6 kB
        Kathey Marsden
      6. Derby5582Runner.java
        3 kB
        Kathey Marsden
      7. derby-5582_10_8_try1_diff.txt
        2 kB
        Kathey Marsden

        Activity

        Kathey Marsden created issue -
        Kathey Marsden made changes -
        Field Original Value New Value
        Summary  Access denied (java.lang.RuntimePermission modifyThreadGroup) in IndexStatisticsDaemonImpl.schedule(Unknown Source)  Access denied (java.lang.RuntimePermission modifyThreadGroup) in IndexStatisticsDaemonImpl.schedule()
        Kathey Marsden made changes -
        Attachment derby-5582_10_8_try1_diff.txt [ 12511340 ]
        Kathey Marsden made changes -
        Attachment Derby5582Runner.java [ 12511903 ]
        Attachment MySecurityManager.java [ 12511904 ]
        Attachment derby5582.policy [ 12511905 ]
        Kathey Marsden made changes -
        Attachment derby-5582_trunk_withtest_diff.txt [ 12512063 ]
        Kathey Marsden made changes -
        Issue & fix info High Value Fix [ 10422 ] High Value Fix,Patch Available [ 10422,10102 ]
        Kathey Marsden made changes -
        Attachment derby-5582_trunk_withtest_diff.txt [ 12512180 ]
        Kathey Marsden made changes -
        Attachment derby-5582_whitespace_diff.txt [ 12513873 ]
        Kathey Marsden made changes -
        Assignee Kathey Marsden [ kmarsden ]
        Kathey Marsden made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 10.8.2.3 [ 12318540 ]
        Resolution Fixed [ 1 ]
        Kathey Marsden made changes -
        Affects Version/s 10.8.3.0 [ 12323456 ]
        Affects Version/s 10.8.2.3 [ 12318540 ]
        Fix Version/s 10.8.3.0 [ 12323456 ]
        Fix Version/s 10.8.2.3 [ 12318540 ]
        Gavin made changes -
        Workflow jira [ 12649946 ] Default workflow, editable Closed status [ 12802125 ]
        Knut Anders Hatlen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Kathey Marsden
            Reporter:
            Kathey Marsden
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development