When loading the test applet with enable logging mode, it failed to load with java.security.AccessControlException: access denied
It is a regression in JDK8-b108 when enabling logging (the problem does not occur with 7u45 GA or JDK8 up to build 107). If turning off the logging, the applet loads fine
The issue likely occurs on all platforms
Tested on x86 Win 7, Vista
*** Steps to reproduce:
0) Install jre 8 b108 or later promotion build
1) Select 'Show console' and 'Enable logging' from Java control panel
2) Use any browser to load this test applet
http://dl.dropbox.com/u/44303246/Games/Rock-Paper-Scissors/bin/Index.html
3) Accept to run the applet from Security Warning dialog
4) If the applet failed to load with the following exception, the issue is reproducible
Exception in thread "Thread-18" java.lang.ExceptionInInitializerError
at java.awt.Component.createBufferStrategy(Unknown Source)
at java.awt.Canvas.createBufferStrategy(Unknown Source)
at GameComponent.render(GameComponent.java:149)
at GameComponent.run(GameComponent.java:139)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.ThreadGroup.getParent(Unknown Source)
at sun.awt.AppContext$6.getAppletContext(Unknown Source)
at java.util.logging.LogManager.getUserContext(Unknown Source)
at java.util.logging.LogManager.addLogger(Unknown Source)
at java.util.logging.LogManager.demandSystemLogger(Unknown Source)
at java.util.logging.Logger.getPlatformLogger(Unknown Source)
at java.util.logging.LoggingProxyImpl.getLogger(Unknown Source)
at sun.util.logging.LoggingSupport.getLogger(Unknown Source)
at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source)
at sun.util.logging.PlatformLogger$JavaLoggerProxy.<init>(Unknown Source)
at sun.util.logging.PlatformLogger.<init>(Unknown Source)
at sun.util.logging.PlatformLogger.getLogger(Unknown Source)
at java.awt.AttributeValue.<clinit>(Unknown Source)
... 5 more
6) If disabling the logging OR enabling logging using jre 8-b107/earlier build, the applet loaded fine
- duplicates
-
JDK-8026404 Logging in Applet can trigger ACE: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
- Closed