United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5056894 : Javascript in Applet hangs Netscape Browser

Details
Type:
Bug
Submit Date:
2004-06-03
Status:
Resolved
Updated Date:
2004-10-19
Project Name:
JDK
Resolved Date:
2004-09-20
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2_04
Fixed Versions:
1.4.2_07 (b01)

Related Reports

Sub Tasks

Description
We are facing the following issue in Netscape browser on using JPI version 1.4.1_04, 1.4.1_02 and 1.4.1_05. We are not facing this issue in
Internet Explorer.Also this issue appears only in Windows platform.
 
Netscape version : 7.1
Java plug in : 1.4.1_04, 1.4.1_02 and 1.4.1_05.
Platform : Windows
 
Netscape browser hangs on submitting a form having an applet.
 
Where we are seeing this issue:
 
Before submitting a form , we are calling a javascript method which invokes a method in the applet.This method in turn gets a browser window object.
 
JSObject  workWindow  = JSObject.getWindow(this);  // handle for browser window
try{
if(workWindow != null)
 
// Following is the place where Netscape browser hangs
      retObject = workWindow.call(functionName, args); // call to the function
}
catch (Exception j)
{
 // No exceptions seen here
}

Please find attached the thread dump of the hanging JVM instances. We
got the thread dump stack/list output by invoking the following option
in the Java console window when the hang occurred.
a)  t:   dump thread list (dump_thread_list.txt)
b)  v:   dump thread stack (dump_thread_stack1.txt and
dump_thread_stack2.txt)

As we got two different outputs on doing thread dump stack, we are
attaching both the outputs for your reference.
###@###.### 10/13/04 17:12 GMT

                                    

Comments
EVALUATION

From the dumped stack trace, we can't see any deadlock there. So I would like to see whether the submitter could give us a simple testcase which reproduce the issue. Also, does this issue happens with 1.4.2 and 1.5 beta build ? 
###@###.### 2004-06-03

Per customer's feedback, this can only be reproducible with 1.4.2_0x and earlier release. They will escallate the issue to CTE team.
###@###.### 2004-07-23

Can't be produced with 1.5.0 release.
###@###.### 2004-07-23
-----------------------------

The Netscape hang problem is due to a hang at the native level between a Java to Javascript thread and the main browser thread. 
Specifically, the hang occurs when Java to Javascript calls into the PostEvent of JSObject.Dispatch_JSObjectCall method. I've adopted part of the fix for 4957187 from Tiger into 1.4.2_06 and it seems to have fixed the hang problem. The fix is essentially make the Java to Javascript executed in the main thread. A test binary has been sent to customer for testing.
###@###.### 2004-08-13
                                     
2004-08-13
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_07

FIXED IN:
1.4.2_07

INTEGRATED IN:
1.4.2_07


                                     
2004-10-02



Hardware and Software, Engineered to Work Together