JDK-6835683 : Exception thrown by one applet blocks the other applets from loading and hangs the browser
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u14
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-04-29
  • Updated: 2010-09-16
  • Resolved: 2009-12-01
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 6 JDK 7
6u18 b01Fixed 7Fixed
Related Reports
Relates :  
Description
JRE under Test: 6u14 (promoted build-05)
Exception thrown by one applet e.g. security exception raised by unsigned applet, blocks the signed applet from loading inside the same page and hangs the browser. This is regression as compare to old PLug-in.

Steps to reproduce:
1) Create .java.policy with "ALL permissions" and try to load the following applets
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/runtimeArgs/runtimeArgs/html/auto/MaxNewSizeTest/TestRuntimeArgs.html
Both applets will get loaded fine
2) Close the browser and remove the .java.policy file 
Now try to load the same page again. This time if applets fails to load and browser/plug-in hangs then bug is reproduced

3) Try to load the same page using old PLug-in. Browser will not hang this time with unsigned applet raising security exception while signed applet will get loaded fine

Comments
EVALUATION The hang is due to the TrustDecider object is being locked by the thread which is displaying the security dialog for the signed applet. At the same time, another thread which is going to show the "red-x" error for the unsigned applet is waiting for the same TrustDecider object. Attaching a thread dump for the client vm when the hang occurs.
14-05-2009