JDK-5056894 : Javascript in Applet hangs Netscape Browser
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2_04
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-06-03
  • Updated: 2004-10-19
  • Resolved: 2004-09-20
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
1.4.2_07 b01Fixed
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
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

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