Skip to main content

ClassCastException in Java Web Start cache

No replies
sauvage
Offline
Joined: 2004-03-04

Hi,

I get a ClassCastException when using Java Web Start, here is the stack trace:
java.lang.ClassCastException: java.io.File cannot be cast to com.sun.deploy.cache.CachedJarFile
at com.sun.deploy.cache.CacheEntry$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.cache.CacheEntry.getJarFile(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCachedJarFile(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCachedJarFile(Unknown Source)
at com.sun.jnlp.JNLPClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.getJarFile(Unknown Source)
at com.sun.jnlp.JNLPCachedJarURLConnection.connect(Unknown Source)
at com.sun.jnlp.JNLPCachedJarURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
at java.util.ResourceBundle$Control$1.run(Unknown Source)
at java.util.ResourceBundle$Control$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.ResourceBundle$Control.newBundle(Unknown Source)
at java.util.ResourceBundle.loadBundle(Unknown Source)
at java.util.ResourceBundle.findBundle(Unknown Source)
at java.util.ResourceBundle.findBundle(Unknown Source)
at java.util.ResourceBundle.findBundle(Unknown Source)

Regards,

Laurent.