-
Bug
-
Resolution: Fixed
-
P2
-
6u23, 7
-
b138
-
generic, x86
-
windows, windows_7
-
Verified
Some applets are getting loaded fine intially but end up throwing securiyt exception on doing a page relaod.
Try to load following applets inside the browser.
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/security/eventqueue/ToolKitEventQueueACTest.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/security/eventqueue/ToolKitEventQueueACTest2.html
try to do page reload and if following exceptions are getting thrown then bug is reproduced
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.Applet2SecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.setupGrayBoxPainter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.access$600(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
PluginMain.StartAppletListener: appletErrorOccurred for applet ID 10
Exception in thread "thread applet-EventQueueKeyStrokeTest.class-10" java.lang.ExceptionInInitializerError
at sun.plugin.services.WIExplorerBrowserService.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.main.client.WIExplorerServiceDelegate.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.main.client.MessagePassingExecutionContext.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.applet.Applet2BrowserService.getBrowserSigningRootCertStore(Unknown Source)
at com.sun.deploy.security.TrustDecider.reset(Unknown Source)
at com.sun.deploy.security.TrustDecider.<clinit>(Unknown Source)
at sun.plugin.util.ErrorPanel.deniedCertificateFailure(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.showAppletException(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.showAppletException(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Program Files\Java\jre7\bin\msvcr100.dll" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at com.sun.deploy.config.WinPlatform.loadDeployNativeLib(Unknown Source)
at com.sun.deploy.security.WIExplorerCertStore.<clinit>(Unknown Source)
... 17 more
Try to load following applets inside the browser.
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/security/eventqueue/ToolKitEventQueueACTest.html
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/security/eventqueue/ToolKitEventQueueACTest2.html
try to do page reload and if following exceptions are getting thrown then bug is reproduced
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.Applet2SecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.setupGrayBoxPainter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.access$600(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
PluginMain.StartAppletListener: appletErrorOccurred for applet ID 10
Exception in thread "thread applet-EventQueueKeyStrokeTest.class-10" java.lang.ExceptionInInitializerError
at sun.plugin.services.WIExplorerBrowserService.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.main.client.WIExplorerServiceDelegate.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.main.client.MessagePassingExecutionContext.getBrowserSigningRootCertStore(Unknown Source)
at sun.plugin2.applet.Applet2BrowserService.getBrowserSigningRootCertStore(Unknown Source)
at com.sun.deploy.security.TrustDecider.reset(Unknown Source)
at com.sun.deploy.security.TrustDecider.<clinit>(Unknown Source)
at sun.plugin.util.ErrorPanel.deniedCertificateFailure(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.showAppletException(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.showAppletException(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Program Files\Java\jre7\bin\msvcr100.dll" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at com.sun.deploy.config.WinPlatform.loadDeployNativeLib(Unknown Source)
at com.sun.deploy.security.WIExplorerCertStore.<clinit>(Unknown Source)
... 17 more
- relates to
-
JDK-6559401 AccessControlException in signed applet(calling File.exists()) when JSObject used
- Closed