JDK-7036163 : AccessControlException is thrown when trying to drag an applet out of browser
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-04-13
  • Updated: 2011-04-13
  • Resolved: 2011-04-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Test JRE: b138-pit  http://rehudson.sfbay.sun.com/hudsonws/deploypit/bundles/windows-i586/b255-2011-04-07_58/
Test OS: winxp, vista
Test browser: firefox 3.6.13, IE8

Steps to reproduce:
1) Launch the applet with java console open http://rehte.cn.oracle.com:8080/wshost/new_ws/deployment/src/plugin/Decoration/Decoration/html/DecorationTrueJnlp.html
2) Drag the applet out of browser. If the following exception is thrown, bug is reproduced.
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Documents and Settings\ccheung\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\lastAccessed" "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)
...
...
Exception in thread "AWT-EventQueue-2" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
	at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)
	at java.awt.Component.getLocationOnScreen(Unknown Source)
	at com.sun.deploy.uitoolkit.impl.awt.AWTDragHelper$PerAppletInfo.refreshCloseButtonFrame(Unknown Source)
	at com.sun.deploy.uitoolkit.impl.awt.AWTDragHelper$PerAppletInfo.setupCloseListener(Unknown Source)

This bug can not be reproduced always. Try a few more times.

Source code location:
http://rehte.cn.oracle.com:8080/wshost/new_ws/deployment/src/plugin/Decoration/Decoration/src