JDK-5080386 : Problem with embedded Internet Explorer using Sun Java
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: aa,5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-07-29
  • Updated: 2004-12-15
  • Resolved: 2004-12-15
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.
Other JDK 6
1.4.2_08Fixed 6 b16Fixed
Related Reports
Duplicate :  
Description
This problem was reported by UGS PLM Solutions:

---------------------------------------------------------------------------
We are experiencing a problem (reported by Suzuki in Japan) with our
embedded Internet Explorer control in NX.  This works fine with the
Microsoft Java, but not with the Sun Java loaded onto the machine.  We
have other applications that require the Sun Java to be loaded.

Our development team was able to create a scenario outside of our
application which demonstrates the problem with a simple Java applet not
part of our application.

The attached zip file contains the html and java class.  The source is
also included.  JDK and JRE 1.4.2_05 were used.
---------------------------------------------------------------------------

Steps to reproduce the problem:

Here is a small Java example. It was downloaded with Sun Java SDK
1.4.2_05 samples. Then I have rebuilt with the same 1.4.2_05 SDK. In
fact, any Java applet can be used.

1.       Close all Internet Explorer (IE) windows
2.       Open Task Manager and make sure that there is no IEXPLORE.EXE
         process running.
3.       Unzip the attached file
4.       Open the created example folder in Windows Explorer (WE), which
         has the list of folders on the left (NOT the Internet Explorer).
5.       In the address bar type "start.html".
6.       The HTML document will be opened in the embedded browser of WE.
         This is a simple DHTML script to launch the Sun sample in a new window.
7.       Click "New". The IE window will open with Java example.
8.       Go to Processes tab in the Task Manager and verify that
         IEXPLORE.EXE is running now.
9.       Close the IE window
10.      Verify that IEXPLORE.EXE did not disappear from the task manager
         as we expected.
11.      Type "http://msn.com <http://msn.com/> " in the address bar of WE.
12.      WE tries to open this URL inside and freezes
13.      Kill IEXPLORE.EXE process in the Task Manager
14.      WE wakes up and opens the URL


This only occurs using Sun Java and not when using the Microsoft version
of Java.  The version of Windows (XP, NT, etc.) doesn't matter and it happens
on all types of hardware.  The customer wants to use the Sun version of Java.

The sample program is attached.

Comments
EVALUATION I could reproduce the problem following the steps in the description. However I see that all the Java Plug-in modules are unloaded when the launched IE from windows explorer is closed. For example the opened Java console gets closed and the task bar icon disappears. Attaching the debugger to the background IE process doesn't reveal any Java threads. ###@###.### 10/12/04 18:04 GMT With further debugging, it is found that the iexplore.exe hangs in the background because of a call to COM API ::CoUninitialize() in the DllMain() during process detach. The MSDN documentation warns against the use of this COM API in DllMain(). ###@###.### 10/27/04 01:26 GMT
12-10-2004