By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

Differences between Sun JVM and Microsoft JVM.

P: n/a
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>(Unk nown Source)
at sun.plugin.net.protocol.http.HttpClient.New(Unknow n Source)
at sun.plugin.net.protocol.http.HttpURLConnection.cre ateConnection(Unknown
Source)
at sun.plugin.net.protocol.http.HttpURLConnection.con nect(Unknown
Source)
at sun.plugin.net.protocol.http.HttpURLConnection.get InputStream(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.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ch***********@ktsplc.com (Chris Grimble) wrote in message news:<a5**************************@posting.google. com>...
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) [snipped...]
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) [snipped...]
It appears that the applet never gets loaded. I have no idea why?
What is the Sun JVM doing here?


The clue was in the question - did you not notice the bit saying
"Malformed reply from SOCKS server" ? This is the first thing you
should investigate...

If you have access to them, try checking any error logs for your
SOCKS service, that should give you a few important pointers.
Check that the plugin is configured correctly. If you have one,
try pointing the plugin towards a web proxy instead, and see what
results you get.
-FISH- ><>
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.