Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6563344

IE crashes while loading the Java plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6, 6u1
    • Fix Version/s: 7
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b64
    • CPU:
      x86
    • OS:
      windows_2003, windows_vista

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.6.0"
        Java(TM) SE Runtime Environment (build 1.6.0-b105)


        ADDITIONAL OS VERSION INFORMATION :
        Windows 2003 SP2
        Also faced the issue against few other flavors of Windows.

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Its a fresh OS installed on the system, no other softwares installed. Browser: Internet Explorer 6 SP 2.

        We did not see the issue on other browsers like FireFox.

        A DESCRIPTION OF THE PROBLEM :
        The browser (Internet Explorer) crashes when you try to open any page containing a Java applet.
         
          To reproduce the issue you don't even need to necessarily visit such a page. Just attempting to open "Sun Java Console" from the "Tools" menu of Internet Explorer causes the crash.
         
        Note that this crash does not create any log file etc (exmaple hs_err_pid... etc) on the desktop, nor does it present any error dialogs or warnings.

        There another issue in Bug Parade (Bug ID 6559136), which may have similar root cause.


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Sufficient Steps to Reproduce the issue:
        1) Install the operating system.
        2) Install Java Plug-in 1.6.0.
        3) Open Internet Explorer
        4) From Tools menu, click Sun Java Console.
        5) Observe that the Java console never opens, instead the browser silently crashes (the browser window disappears).


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The browser is expected to load the Java plugin and run any applet.
        ACTUAL -
        The browser crashes if you try to load any applet.

        If you try to open the Sun Java Console (without even visiting any URL), the Java console never opens, instead the browser silently crashes (the browser window disappears).


        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        The browser silently crashes without producing any warning, error dialog or log file (e.g. hs_err_pid...).


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        To observe crash while opening Java Console, no source code is required. Just Access "Sun Java Console" from the "Tools" menu of the Internet Explorer.

          To observe the crash using an applet the following is sufficient:

        import javax.swing.JApplet;
        import java.awt.Graphics;

        public class HelloWorld extends JApplet {
            public void paint(Graphics g) {
                g.drawString("Hello world!", 5, 15);
            }
        }

        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        (1) If Java Plug-in 1.5.0 update 6 is used in place of Java Plug-in 1.6.0, the issue is not seen. You can run applets or open Sun Java Console from the Tools menu of IE when using Java 1.5.0 update 6.
        We did not investigate with other intermediate Java Plug-in versions (like 1.5 update 7... etc).
         
        (2) In the Internet Explorer, Tools->Internet Options->"Advanced" tab, if you select the checkbox titled "Enable third-party browser extensions (requires restart)" even once, then the issue disappears.
        If you get the Sun Java Console work even once (by selecting this checkbox), after that it will always work, no matter wehther you check or uncheck it.
         
        (3) Analysis performed by us:
        JRE when installed, it adds a Java Plugin 1.6.0 for Netscape Navigator which is a helper DLL npjpi160.dll, This plugin internally loads the DLL file jpiexp.dll which is actual plug-in for Internet Explorer , during loading of this DLL, the internet explorer crashes due to the Trap ACCESS VIOLATION.

        But, If we copy the file jpexp32.dll from JRE 5.0, and rename it as jpexp.dll in JRE 6.0, the dll loads sucessfully.

        Release Regression From : 5.0u11
        The above release value was the last known release where this
        bug was not reproducible. Since then there has been a regression.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ccheung Calvin Cheung
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: