java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

Apache's JIRA Issue Tracker | Jeff Mesnil | 8 years ago
  1. 0

    I'm using MINA 2.0.0-M4 within a restricted environment (an Applet in my case, could also be JNLP). When running the code in appletviewer, I need to add a permission for the code to be executed successfully: permission java.lang.RuntimePermission "modifyThread"; If I don't add this permission, the code fails with the following stack trace: Exception in thread "pool-2-thread-1" java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:893) at org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:230) at org.apache.mina.core.polling.AbstractPollingIoConnector$Connector.run(AbstractPollingIoConnector.java:512) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:65) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) The exception occurs when I close the SocketConnector: public synchronized void close() { if (connector != null) { connector.dispose(); connector = null; } }

    Apache's JIRA Issue Tracker | 8 years ago | Jeff Mesnil
    java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
  2. 0

    Why can't I shutdown my own ExecutorService under a SecurityManager?

    java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
  3. 0

    db:: 3.65::Error listenerStart xc

    hivmr.com | 7 months ago
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! access denied (java.lang.RuntimePermission modifyThread)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception when closing applet (SwingWorker)

    Oracle Community | 6 years ago | 845947
    java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
  6. 0

    Re:ICEFACES ON A TOMCAT SHARED HOSTING PLAN

    Icesoft | 6 years ago | giamma1981
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! access denied (java.lang.RuntimePermission modifyThread)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (java.lang.RuntimePermission modifyThread)

      at java.security.AccessControlContext.checkPermission()
    2. Java RT
      ThreadPoolExecutor.shutdown
      1. java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
      2. java.security.AccessController.checkPermission(AccessController.java:427)
      3. java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:893)
      3 frames
    3. Apache MINA Core
      AbstractPollingIoConnector$Connector.run
      1. org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:230)
      2. org.apache.mina.core.polling.AbstractPollingIoConnector$Connector.run(AbstractPollingIoConnector.java:512)
      2 frames
    4. MINA
      NamePreservingRunnable.run
      1. org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:65)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      3. java.lang.Thread.run(Thread.java:613)
      3 frames