United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5080386 : Problem with embedded Internet Explorer using Sun Java

Details
Type:
Bug
Submit Date:
2004-07-29
Status:
Resolved
Updated Date:
2004-12-15
Project Name:
JDK
Resolved Date:
2004-12-15
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
aa,5.0
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:

Sub Tasks

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
                                     
2004-10-12



Hardware and Software, Engineered to Work Together