JDK-8027276 : Applet failed to load with enabled logging - java.security.AccessControlException: access denied
  • Type: Bug
  • Component: deploy
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2013-10-24
  • Updated: 2013-12-03
  • Resolved: 2013-12-03
Related Reports
Duplicate :  
Description
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 


Comments
Verified on x86 Win 7/ FF 24, IE 9, GC 30.x using JDK8-b114 promotion
01-11-2013

Since this is an unsigned apps so lowering the security to medium for the purpose of fix verification in JDK 8
01-11-2013

Will validate against jre8-b113 promotion
25-10-2013

Affected test case: set2/dropbox_RockPaperScissors
24-10-2013