Skip to main content

Applets don't seem to work with the latest snapshot

4 replies [Last post]
nikolaymetchev
Offline
Joined: 2005-01-17
Points: 0

Every time an applet is launched using internet explorer on windows 2000 I get the following. Anybody else experiencing this problem?:

Java Plug-in 1.6.0
Using JRE version 1.6.0-ea Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\n.metchev
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading proxy configuration from Internet Explorer ...
network: Done.
network: Loading direct proxy configuration ...
network: Done.
network: Proxy Configuration: No proxy

java.lang.ClassCastException: java.io.File cannot be cast to com.sun.deploy.cache.CachedJarFile
at com.sun.deploy.cache.CacheEntry.getJarFile(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCachedJarFile(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
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)
basic: Exception: java.lang.ClassCastException: java.io.File cannot be cast to com.sun.deploy.cache.CachedJarFile
java.lang.ClassCastException: java.io.File cannot be cast to com.sun.deploy.cache.CachedJarFile
at com.sun.deploy.cache.CacheEntry.getJarFile(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCachedJarFile(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
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)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
thomasng
Offline
Joined: 2003-06-09
Points: 0

The stack trace seems to be related to the new cache code in mustang.

However I cannot reproduce the problem yet.

Can you please post the applet url which can be used to reproduce the problem ?

nikolaymetchev
Offline
Joined: 2005-01-17
Points: 0

It seems that if you delete the cached version of the Jar file the error seems to go away.
I think in order to reporduce you have to run an applet with Java 1.5 and then upgrade to Mustang and to a newer version of the applet at the same time.
Unfortunately the error occured in an applet which is not publicly available so I cannot give you a url.

nikolaymetchev
Offline
Joined: 2005-01-17
Points: 0

Yesterday I deleted the cache and the applet started to work. Today however deleting the cache does not get the applet to work and I do get the exception.

bino_george
Offline
Joined: 2003-06-16
Points: 0

Have you tried, deleting the contents of the cache using the
control panel ? I wonder if there is some kind of
incompatibility with the older cached jar files. I have
forwarded this post to Stanley from plugin team. He or
someone in the plugin team will look into it and reply.

Regards,
Bino.