JDK-6612492 : Plug-in crashes when required bundles cannot be downloaded
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u5
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2007-10-03
  • Updated: 2010-09-08
  • Resolved: 2008-02-12
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
6u10 b07Fixed
Description
When the Java Plug-In requires Kernel bundle downloads in order to start, it (and consequently the entire browser) will crash if those downloads fail.

The easiest way to reproduce this is:

1) Set the registry key HKEY_LOCAL_MACHINE\Software\JavaSoft\KernelDownloadURL to a nonexistent url like "http://dgayqasdf.com"
2) Install Java Kernel.
3) Attempt to run any applet.  
4) You will receive a number of errors complaining about being unable to download bundles.  If you have a choice, cancel them.
5) If the browser doesn't crash immediately, try shutting it down.  It should crash while exiting.

Tested using IE7 on XP SP2.

(Don't forget to remove the broken registry entry when you're done testing, or Kernel won't work)

Comments
EVALUATION From debugging, it was found that the CJavaVMService destructor was called twice, one in the Release() and another one in _Module.Term(), during browser exit if the kernel jvm was used. The fix is to check which jvm is in use and avoid the above situation from happening.
10-10-2007