[Python-bugs-list] SimpleHTTPServer hangs browser? (PR#312)

aliberi@acutronic.com aliberi@acutronic.com
Thu, 4 May 2000 09:08:24 -0400 (EDT)


Full_Name: Armand Liberi
Version: 1.5.2
OS: LynxOS, Windows NT4SP6
Submission from: c196.acutronic.nauticom.net (209.195.177.196)


This reprot has also been sent to Sun.

Running SimpleHTTPServer on either LynxOS or Windows NT4SP6,

a.  Compile a java class named Test, such as:
----------------------------------------
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class Test extends Applet {
	public void init() {

		Label label = new Label("Swing!");

		add(label, BorderLayout.CENTER);
	}
}
----------------------------------------
b.  Create an HTML file that uses the above class:
----------------------------------------
<HTML>
<HEAD>
<TITLE>JVM1.3 - Python SimpleHTTPServer Test</TITLE>
</HEAD>
<BODY>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
	width="300" height="150" align="baseline"
	codebase="http://java.sun.com/products/plugin/1.3/jinstall-1_3-win.cab#Version=1,3,0,0"
	>
<PARAM NAME="code" VALUE="Test.class">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="true">
<COMMENT>
	<EMBED type="application/x-java-applet;version=1.3" width="300"
		height="150" align="baseline" code="Test.class"
		pluginspage="http://java.sun.com/products/plugin/1.3/plug-install.html"
	>
	<NOEMBED>
	</COMMENT>
		No JDK 1.3 support for APPLET!!
	</NOEMBED></EMBED>
</OBJECT>
</BODY>
</HTML>
----------------------------------------

c.  Install the HTML and class files into the Python HTTP web.

d.  Using Internet Explorer 5.01, address the HTML.  The HTML page will load and
the browser will hang.  Sometimes, it can be exited normally; most times, it
will require more drastic measures.

e.  Using Netscape Navigator 4.72, the browser will hang with the message "Host
.. contacted. Waiting for reply" in the status bar.  When "Reload" is clicked,
the applet will run.

f.  Java console displays:

----------------------------------------
Java(TM) Plug-in: Version 1.3.0rc2-Y
Using JRE version 1.3.0rc2 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\Armand
Proxy Configuration: no proxy

JAR cache enabled.
----------------------------------------