JDK-7045485 : sometimes, 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: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-05-17
  • Updated: 2013-09-12
  • Resolved: 2011-05-31
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
7 b144Fixed
Related Reports
Relates :  
Description
Tested OS: winxp
JRE: jre7 b142
Tested browser: ie8/ff4

Steps to reproduce:
1) clear java cache.
2) Launch the applet with java console open http://rehte.cn.oracle.com:8080/wshost/new_ws/deployment/src/plugin/Decoration/Decoration/html/DecorationTrueJnlp.html
3) 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:\DOCUME~1\duke\LOCALS~1\Temp\cache\6.0\26\2657c5a-6.0.lap" "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.length(Unknown Source)
...

Trace file has been attached with this CR.

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