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.Class NotFoundExcepti on: <name>.class
at sun.applet.Appl etClassLoader.f indClass(Unknow n Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.applet.Appl etClassLoader.l oadClass(Unknow n Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.applet.Appl etClassLoader.l oadCode(Unknown Source)
at sun.applet.Appl etPanel.createA pplet(Unknown Source)
at sun.plugin.Appl etViewer.create Applet(Unknown Source)
at sun.applet.Appl etPanel.runLoad er(Unknown Source)
at sun.applet.Appl etPanel.run(Unk nown Source)
at java.lang.Threa d.run(Unknown Source)
Caused by: java.net.Socket Exception: Malformed reply from SOCKS server
at java.net.SocksS ocketImpl.readS ocksReply(Unkno wn Source)
at java.net.SocksS ocketImpl.conne ct(Unknown Source)
at java.net.Socket .connect(Unknow n Source)
at sun.net.Network Client.doConnec t(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.doCon nect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.htt p.HttpClient$3. run(Unknown Source)
at java.security.A ccessController .doPrivileged(N ative Method)
at sun.net.https://www.http.HttpClient.privileg...Server(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.<init >(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.New(U nknown Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.createConnect ion(Unknown
Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.connect(Unkno wn
Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.getInputStrea m(Unknown
Source)
at java.net.HttpUR LConnection.get ResponseCode(Un known Source)
at sun.applet.Appl etClassLoader.g etBytes(Unknown Source)
at sun.applet.Appl etClassLoader.a ccess$100(Unkno wn Source)
at sun.applet.Appl etClassLoader$1 .run(Unknown Source)
at java.security.A ccessController .doPrivileged(N ative 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.
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.Class NotFoundExcepti on: <name>.class
at sun.applet.Appl etClassLoader.f indClass(Unknow n Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.applet.Appl etClassLoader.l oadClass(Unknow n Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.applet.Appl etClassLoader.l oadCode(Unknown Source)
at sun.applet.Appl etPanel.createA pplet(Unknown Source)
at sun.plugin.Appl etViewer.create Applet(Unknown Source)
at sun.applet.Appl etPanel.runLoad er(Unknown Source)
at sun.applet.Appl etPanel.run(Unk nown Source)
at java.lang.Threa d.run(Unknown Source)
Caused by: java.net.Socket Exception: Malformed reply from SOCKS server
at java.net.SocksS ocketImpl.readS ocksReply(Unkno wn Source)
at java.net.SocksS ocketImpl.conne ct(Unknown Source)
at java.net.Socket .connect(Unknow n Source)
at sun.net.Network Client.doConnec t(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.doCon nect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.htt p.HttpClient$3. run(Unknown Source)
at java.security.A ccessController .doPrivileged(N ative Method)
at sun.net.https://www.http.HttpClient.privileg...Server(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
at sun.net.www.htt p.HttpClient.<i nit>(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.<init >(Unknown Source)
at sun.plugin.net. protocol.http.H ttpClient.New(U nknown Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.createConnect ion(Unknown
Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.connect(Unkno wn
Source)
at sun.plugin.net. protocol.http.H ttpURLConnectio n.getInputStrea m(Unknown
Source)
at java.net.HttpUR LConnection.get ResponseCode(Un known Source)
at sun.applet.Appl etClassLoader.g etBytes(Unknown Source)
at sun.applet.Appl etClassLoader.a ccess$100(Unkno wn Source)
at sun.applet.Appl etClassLoader$1 .run(Unknown Source)
at java.security.A ccessController .doPrivileged(N ative 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.
Comment