Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4751259
Votes 6
Synopsis Java->JS crashes IE with JPI 1.4.0_02/ NPE with 1.4.1
Category java_plugin:iexplorer
Reported Against 1.4 , 1.4.1 , 1.4.2 , 1.4.0_02 , mantis-beta
Release Fixed 1.4.1_07, 1.4.2_02(Bug ID:2058895) , 1.5(tiger) (Bug ID:2058896)
State 10-Fix Delivered, Verified, bug
Priority: 4-Low
Related Bugs 4751952 , 4802120 , 4879884 , 4948594 , 6534719 , 6639429 , 6642444
Submit Date 21-SEP-2002
Description
Customer Problem Description:

The foll applet works fine on IE6.0 and default  customer  VM.
The same crashes the browser with jpi 1.4.0_02. It gives a
NPE with jpi 1.4.1.
Work Around
N/A
Evaluation
The HTML page attached with bug report results in creating plug-in frame, it gets destroyed immediately, and then the frame is created again. When the frame is created for the second time, we fail to create new plug-in object, instead we use the old plug-in object which is not initialized correctly and this results in NullPointerException. The crash in 1.4.0_0x releases is duplicate of #4599575

I could modify the HTML page to have the applet loaded. However, the second call in the javascript fails because private class's method is accessed. When I make the class public, the applet works fine. The modified HTML and Java files are available in the attached zip file called working.zip  
  xxxxx@xxxxx   2002-09-2

This requires modification to plug-in shutdown sequence which will be a major change. Hence will commit to tiger. Since this test case is not a common scenario, I will lower the priority to p4.

For the error reported in the coments section, we can file a another bug.
  xxxxx@xxxxx   2002-11-12

When any control is loaded through an APPLET tag which is generated dynamically, the control is inplace activated, deactivated and then activated again. This looks to be a Microsoft bug.

The workaround in our code is to reload the control
  xxxxx@xxxxx   2003-08-03
Comments
  
  Include a link with my name & email   

Submitted On 03-MAR-2003
rbpulse
I'm getting this exception on 1.4.1_02 with Javascript that 
assigns text containing the applet tag to an element's 
innerHTML.


Submitted On 23-MAR-2003
hongmeng
I'm also getting this exception. Here is a sample HTML page. 
Substitude testApplet for your own. For me (IE6 under 
1.4.1_02) the work around is to remove either "height=xxx" or 
width="xxx" from the <Applet> tag. If both are there, there is 
an exception. If only one is there, no exception is generated.


<HTML>
<HEAD>
<TITLE>TEST</TITLE>

<Script Language="javascript">

function test1() {
	document.all.Table1.rows(0).cells
(0).innerHTML="<Applet code=\"testApplet1.class\" width=200 
height=100 align=Bottom></Applet>";
}
</Script>
</HEAD>
<BODY>


<Table ID="Table1"><TR><TD>Hello</TD></TR>
</Table>

<A href="javascript:test1();">test1</A><BR>
</BODY>
</HTML>



Submitted On 15-JUL-2003
blmatthews
I've been using the "one of height & width" workaround, but 
that appears to have stopped working in 1.4.2. Has anyone 
else experienced that, and if so is there a new workaround for 
1.4.2?


Submitted On 26-SEP-2005
ramankumar_gvspva
I am using 1.4.2_01 java plugin. Still I am experiencing the same problem. But when I see the release fixed it is mentioning  "1.4.1_07  ".
Can anybody suggest, how this can be solved.

Raman Kumar.GVSPVA



PLEASE NOTE: JDK6 is formerly known as Project Mustang