When running applets in Java Plug-in 1.4b88, running applets in the following URL:
http://www.infospace.com/:18:/LottoLink/unstates/ky/html/lotto.html
may result in exception:
java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.createCacheFiles(CachedFileLoader.java:309) at sun.plugin.cache.CachedFileLoader.access$200(CachedFileLoader.java:39) at sun.plugin.cache.CachedFileLoader$4.run(CachedFileLoader.java:276) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.Cache.privileged(Cache.java:237) at sun.plugin.cache.CachedFileLoader.updateCache(CachedFileLoader.java:256) at sun.plugin.cache.CachedFileLoader.loadFromCache(CachedFileLoader.java:147) at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:93) at sun.plugin.cache.FileCache.get(FileCache.java:148) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(HttpURLConnection.java:208) at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:144) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:314) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1137) at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1151) at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:225) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:144) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:141) at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:309) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:115) at java.lang.ClassLoader.loadClass(ClassLoader.java:265) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:476) at sun.applet.AppletPanel.createApplet(AppletPanel.java:551) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1626) at sun.applet.AppletPanel.runLoader(AppletPanel.java:480) at sun.applet.AppletPanel.run(AppletPanel.java:293) at java.lang.Thread.run(Thread.java:539)
Steps to reproduce:
- Open the browser and goto the URL, applet will run.
- Shutdown the browser.
- Open the browser again and goto the same URL, exception will be thrown.
It seems like the cache is in inconsistent state and being messed up. This problem occurs in IE/NS on Win32, and it causes several applet compatibility tests to fail.
http://www.infospace.com/:18:/LottoLink/unstates/ky/html/lotto.html
may result in exception:
java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.createCacheFiles(CachedFileLoader.java:309) at sun.plugin.cache.CachedFileLoader.access$200(CachedFileLoader.java:39) at sun.plugin.cache.CachedFileLoader$4.run(CachedFileLoader.java:276) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.Cache.privileged(Cache.java:237) at sun.plugin.cache.CachedFileLoader.updateCache(CachedFileLoader.java:256) at sun.plugin.cache.CachedFileLoader.loadFromCache(CachedFileLoader.java:147) at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:93) at sun.plugin.cache.FileCache.get(FileCache.java:148) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(HttpURLConnection.java:208) at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:144) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:314) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1137) at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1151) at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:225) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:144) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:141) at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:309) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:115) at java.lang.ClassLoader.loadClass(ClassLoader.java:265) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:476) at sun.applet.AppletPanel.createApplet(AppletPanel.java:551) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1626) at sun.applet.AppletPanel.runLoader(AppletPanel.java:480) at sun.applet.AppletPanel.run(AppletPanel.java:293) at java.lang.Thread.run(Thread.java:539)
Steps to reproduce:
- Open the browser and goto the URL, applet will run.
- Shutdown the browser.
- Open the browser again and goto the same URL, exception will be thrown.
It seems like the cache is in inconsistent state and being messed up. This problem occurs in IE/NS on Win32, and it causes several applet compatibility tests to fail.