JDK-6510734 : Java accesses websites without correct certificate can hang Firefox
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_nevada
  • CPU: x86
  • Submitted: 2007-01-08
  • Updated: 2010-09-30
  • Resolved: 2007-04-25
Related Reports
Duplicate :  
Description
This bug is related to mozilla bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=291522. The test case: https://bugzilla.mozilla.org/attachment.cgi?id=181581.

The test case is written in a special way. As the comment(https://bugzilla.mozilla.org/show_bug.cgi?id=291522#c4) states, "archive" is specified with a https link: https://bugzilla.mozilla.org/attachment.cgi?id=181574.

If I download the test case to a local directory and change the "archive" to a local jar file, it works well. But the test case on the web can hang my Firefox on Solaris snv_54. There are some error output in the Java console:

load: class JavaScriptApplet.class not found.
java.lang.ClassNotFoundException: JavaScriptApplet.class
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:778)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2028)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)
   at sun.applet.AppletPanel.run(AppletPanel.java:361)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: open HTTP connection failed.
   at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:286)
   at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
   at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
   ... 9 more

A dialog also shows that the web site's certificate cannot be verified. (Name: bugzilla.mozilla.org).

I've also met some other similar situation. If the class file specified by "code" in html file can't be found, Firefox also hangs.
I could not access the testcase from bugzilla by some reason.
A recent fix for JPI solaris/linux may address this problem (see bug 6521732).
Alfred, can you please re-attach the testcase here with this bug or contact me so that I can send you a build image with fix 6521732 to verify.
Thanks.

Comments
EVALUATION I do not see the hang that Alfred refer to in his last comment. However, when JavaScriptApplet.jar is archived locally, after the test has been carried out successfully once (i.e, "click me" to do J-JS and Applet's ThreadGroup is joined by closing on applet window), I have problem reloading the page (and reloading the applet) by clicking page refresh. The browser would appear as if it's busily trying to reload the page, but not hang. If you go to a different URL then click back to reload this JavaScriptApplet test, the applet will load fine and J-JS click will work again. I do not see this problem when JavaScriptApplet.jar is archived via https. However, this is a separate issue. I will close out this CR file another plugin bug on this new applet reload issue. problem.
25-04-2007

EVALUATION Comment left by Alfred on https://bugzilla.mozilla.org/show_bug.cgi?id=291522 on 4/25/07: Danielle, I tried the 1.6.0u2 build on Solaris x86/SPARC. Both of them work well and Firefox doesn't hang any more. I think the bug has been fixed in this build:) Thanks! I notice that when hovering the mouse above the plugin area and clicking, Firefox will still hang. Anyway, this should be a separate issue.
25-04-2007

EVALUATION I can see exactly the symptom described by Alfred with JRE 6.0 b105, but can no longer see the problem with JRE 6.0_u2 b1 or later. That is, the applet loaded fine and the call from Java->JS works well whether the JavaScriptApplet.jar is archived via https or on local system. A fix (Sun bug ID 6521732) which was putbacked in JRE 6.0_u2 b1 has likely resolved this problem. Alfred, to confirm my finding, can you please download latest 6.0_u2 build from here http://javaweb.sfbay.sun.com/jcg/NightlyBuilds/update.int/6u2/archived/2007-04-16.6u2/ for your test platform and see if the problem also goes away with this build for you as well. Thank you.
25-04-2007

EVALUATION awaiting confirmation from submitter as to wheather 6u1 fix for 6521732 addresses this problem also
22-03-2007