java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "stopThread") at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:548) at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(jdk.plugin@9-ea/AWTAppletSecurityManager.java:81) at java.lang.Thread.stop(java.base@9-ea/Thread.java:938)

JDK Bug System | Crystal Yang | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Env: win7/x86/IE11/jre9-b135, win7/x64/IE9/JDK9b135 Steps to reproduce: 0. Enable java console and trace 1. Go to Java Control Panel / Security, add http://www.ericharshbarger.org to ESL 2.Browse http://www.ericharshbarger.org/java 3.Click on 'Applets' 4.Click on 'Break Away' 5. Click "x" from browser to close applet 6. If you see the following exception in trace or console, this bug is reproduced: basic: Starting applet teardown java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "stopThread") at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:548) at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(jdk.plugin@9-ea/AWTAppletSecurityManager.java:81) at java.lang.Thread.stop(java.base@9-ea/Thread.java:938) at BreakAway1ech.stop(BreakAway1ech.java) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter.stop(jdk.plugin@9-ea/AWTAppletAdapter.java:400) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(jdk.plugin@9-ea/Plugin2Manager.java:2088) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Note: no such issue with jre9-b95.

    JDK Bug System | 6 months ago | Crystal Yang
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "stopThread") at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:548) at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(jdk.plugin@9-ea/AWTAppletSecurityManager.java:81) at java.lang.Thread.stop(java.base@9-ea/Thread.java:938)

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied ("java.lang.RuntimePermission" "stopThread") at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:548) at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(jdk.plugin@9-ea/AWTAppletSecurityManager.java:81) at java.lang.Thread.stop(java.base@9-ea/Thread.java:938)

      at BreakAway1ech.stop()
    2. Unknown
      BreakAway1ech.stop
      1. BreakAway1ech.stop(BreakAway1ech.java)
      1 frame