Differences between Sun JVM and Microsoft JVM.

From: Chris Grimble (chris.grimble_at_ktsplc.com)
Date: 01/27/04


Date: 27 Jan 2004 06:29:23 -0800

I have a very simple applet that I am trying to make compatible with
both Microsoft's JVM and Suns JVM in Internet Explorer.
However, when I turn on the Sun JVM it works occasionally, but
frustratingly on most occasions I get the following error messages:

In the status bar: "Applet <name> notinited"

And when I investigate further in the console I get the following
output:

load: class <name>.class not found.
java.lang.ClassNotFoundException: <name>.class
        at sun.applet.AppletClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.applet.AppletClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.applet.AppletClassLoader.loadCode(Unknown Source)
        at sun.applet.AppletPanel.createApplet(Unknown Source)
        at sun.plugin.AppletViewer.createApplet(Unknown Source)
        at sun.applet.AppletPanel.runLoader(Unknown Source)
        at sun.applet.AppletPanel.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Caused by: java.net.SocketException: Malformed reply from SOCKS server
        at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.http.HttpClient.privilegedOpenServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
        at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
        at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown
Source)
        at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
Source)
        at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at sun.applet.AppletClassLoader.getBytes(Unknown Source)
        at sun.applet.AppletClassLoader.access$100(Unknown Source)
        at sun.applet.AppletClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)

        ... 10 more

It appears that the applet never gets loaded. I have no idea why?
What is the Sun JVM doing here?

Many thanks in advance for any help.



Relevant Pages

  • Re: Differences between Sun JVM and Microsoft JVM.
    ... > It appears that the applet never gets loaded. ... > What is the Sun JVM doing here? ... "Malformed reply from SOCKS server"? ... Check that the plugin is configured correctly. ...
    (comp.lang.java)
  • applet caching
    ... I found that when an applet is cached (using Sun jvm), ... somekind of checksum added to them ...
    (comp.lang.java.programmer)
  • java cache
    ... I found that when an applet is cached (using Sun jvm), ... somekind of checksum added to them ...
    (comp.lang.java.programmer)
  • Re: Sun vs. Microsoft JVMs
    ... components such as Label in Java. ... the Sun JVM in Netscape or Internet Explorer and on Macintosh using the ... Apple JVMs 1.3 and 1.4 in Netscape, Internet Explorer and Safari. ...
    (comp.lang.java.programmer)