-
Bug
-
Resolution: Fixed
-
P2
-
6, 6u10, 6u11
-
b03
-
generic, x86
-
windows_vista
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2199235 | 7 | Calvin Cheung | P2 | Resolved | Fixed | b64 |
FULL PRODUCT VERSION :
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b12)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows Version 6.0.6001
A DESCRIPTION OF THE PROBLEM :
We have a web application that runs as a Hyper Text Application(HTA) to give us more control. Our we app uses Java Applets for some of its interfaces. We didn't have a problem with this until the release of Vista. When the applet tries to start up in an HTA under Windows Vista, Windows Data Execution Prevention (DEP) process shuts down the HTA and gives no further information as to why. This was explained to Microsoft and they are stating it is a problem SUN will have to address. We have a Microsoft case number SRX070305603739 for your reference.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1 - Create a HTA file called MyHta.hta that contains the following HTML
<html>
<head>
<title>Application</title>
</head>
<frameset id="topFrameset" rows="100%">
<frame name="topframe" src="JarUpdate.htm" UNSELECTABLE="on" application="yes" trusted="yes" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
</frameset>
</html>
2 - Create html page called JarUpdate.htm with the following:
<html>
<head>
<title>Updated Jar Check</titl
</head>
<body LEFTMARGIN="0" TOPMARGIN="0">
<table width="100%" height="100%">
<tr>
<td height="80%"> </td>
</tr>
<tr align="center" valign="top">
<td>
<object id="The Id" classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA"
width="500" height="210" align="middle" valign="bottom"
border="0">
<param name="archive" value="appletTest.jar"/>
<param name="code" value="MyApplet"/>
</object>
</td>
</tr>
</table>
</body>
</html>
3 - Create a class called MyApplet with the following:
import javax.swing.*;
public class MyApplet extends JApplet {
public void init() {
this.getContentPane().add(new JButton("I am a Button"));
}
}
4 - Jar the class in a jar file called appletTest.jar
5 - Stick them all in the same directory and run the HTA file. If you open the file in internet explorer it will ask you if you want to run or save the file. run it.
6 - The HTA application will run and then give and error "Microsoft (R) HTML Application host has stopped working" and gives options to Check online for help, close program, or to debug. No other information is given.
We were hopping the new Java Plugin would solve this problem and it has not. Any assistance on correcting this issue would be greate.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The applet would run and you would see a button on the web page
ACTUAL -
HTA shuts down and gives error message
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The HTA application will run and then give and error "Microsoft (R) HTML Application host has stopped working" and gives options to Check online for help, close program, or to debug. No other information is given.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b12)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows Version 6.0.6001
A DESCRIPTION OF THE PROBLEM :
We have a web application that runs as a Hyper Text Application(HTA) to give us more control. Our we app uses Java Applets for some of its interfaces. We didn't have a problem with this until the release of Vista. When the applet tries to start up in an HTA under Windows Vista, Windows Data Execution Prevention (DEP) process shuts down the HTA and gives no further information as to why. This was explained to Microsoft and they are stating it is a problem SUN will have to address. We have a Microsoft case number SRX070305603739 for your reference.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1 - Create a HTA file called MyHta.hta that contains the following HTML
<html>
<head>
<title>Application</title>
</head>
<frameset id="topFrameset" rows="100%">
<frame name="topframe" src="JarUpdate.htm" UNSELECTABLE="on" application="yes" trusted="yes" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
</frameset>
</html>
2 - Create html page called JarUpdate.htm with the following:
<html>
<head>
<title>Updated Jar Check</titl
</head>
<body LEFTMARGIN="0" TOPMARGIN="0">
<table width="100%" height="100%">
<tr>
<td height="80%"> </td>
</tr>
<tr align="center" valign="top">
<td>
<object id="The Id" classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA"
width="500" height="210" align="middle" valign="bottom"
border="0">
<param name="archive" value="appletTest.jar"/>
<param name="code" value="MyApplet"/>
</object>
</td>
</tr>
</table>
</body>
</html>
3 - Create a class called MyApplet with the following:
import javax.swing.*;
public class MyApplet extends JApplet {
public void init() {
this.getContentPane().add(new JButton("I am a Button"));
}
}
4 - Jar the class in a jar file called appletTest.jar
5 - Stick them all in the same directory and run the HTA file. If you open the file in internet explorer it will ask you if you want to run or save the file. run it.
6 - The HTA application will run and then give and error "Microsoft (R) HTML Application host has stopped working" and gives options to Check online for help, close program, or to debug. No other information is given.
We were hopping the new Java Plugin would solve this problem and it has not. Any assistance on correcting this issue would be greate.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The applet would run and you would see a button on the web page
ACTUAL -
HTA shuts down and gives error message
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The HTA application will run and then give and error "Microsoft (R) HTML Application host has stopped working" and gives options to Check online for help, close program, or to debug. No other information is given.
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-2199235 Problems running applets in the Hyper Text Appllication (HTA) from windows
- Resolved
- duplicates
-
JDK-6545701 Java plugin triggers Data Execution Prevention (DEP) in 32-bit IE7 on 64-bit Vista
- Closed
-
JDK-6793073 freed memory call in Java IE plug-in
- Closed
- relates to
-
JDK-7105248 Cannot install JRE 1.6.29 x86 on Windows 7 x64 with Hardware Enabled DEP
- Closed