we have a very strange issue where a simple applet just calls Class.forName()
on a non existant method. we except a simple exception to be raised
which we catch but dies if using the 1.2 plugin. the problem happens
in the IE plugin as well.
1.1 or 1.2 appletviewer works fine and so does the 1.1 plugin.
what does not make sense is that if the applet is served by the Microsoft
IIS web server, it will work in the 1.2 plugin. It does not work to an IE(NT) or Netscape(solaris)
1.2 plugin client when served by the Microsoft PWS web server or the
Solaris Web server.
To reproduce:
compilethe file "b.java"
> import java.applet.Applet;
> >
public class b extends Applet
{
public void init()
{
try {
Class.forName("com.sas.foobar");
}
catch (Exception ex) {
ex.printStackTrace();
}
System.out.println("I'm here!!!");
}
}
Converted html, b.html
<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">
<HTML>
<HEAD>
<TITLE>b</TITLE>
</HEAD>
<BODY>
<HR>
<!{{~SAS~(APPLET) - Generated Code - Do Not Edit!>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 600 HEIGHT = 400 NAME = "b" codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0">
<PARAM NAME = CODE VALUE = "b.class" >
<PARAM NAME = NAME VALUE = "b" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.2" java_CODE = "b.class" NAME = "b" WIDTH = 600 HEIGHT = 400 pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED></COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = "b.class" WIDTH = 600 HEIGHT = 400 NAME = "b" >
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
<!}}~SAS~(APPLET)><HR>
</BODY>
</HTML>