After you update Java runtime you may encounter the problem with Image Uploader applet update in cache. This article describes how to resolve this issue.OverviewAfter you update Java runtime to version 1.6 or above, you may encounter the following error message every time Image Uploader Java applet is loaded to the page:
"Unable to update files in cache" error message.
If you click
Details you will see the similar error log:
Code:sun.plugin.cache.JarCacheVersionException: Number of attributes specified in
'cache_archive' doesn't match those in 'cache_version'
at sun.plugin.cache.JarCacheUtil.getJarsWithVersion(Unknown Source)
at sun.plugin.AppletViewer.initJarVersionMap(Unknown Source)
at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.WNetscapePluginObject$Initer.run(Unknown Source)
ReasonSyntax of the applet embedding in iuembed.js file became invalid for the latest updates of Firefox browser.
ResolutionThis problem is fixed since Image Uploader build
4.5.35. So you should just download the most recent version of Image Uploader and replace iuembed.js file.
If for some reason you do not want to update it, you should patch it manually. Find all these entries (note, there are two of them!):
Code:
if (this.javaAppletCached&&this.javaAppletVersion!=""){
r+=this._getObjectParamHtml("cache_archive",this.javaAppletJarFileName);
var v=this.javaAppletVersion.replace(/\,/g,".");
r+=this._getObjectParamHtml("cache_version",v+","+v);
}
and just replace them by the following:
Code:
if (this.javaAppletCached&&this.javaAppletVersion!=""){
r+=this._getObjectParamHtml("cache_archive",this.javaAppletJarFileName);
var v=this.javaAppletVersion.replace(/\,/g,".");
r+=this._getObjectParamHtml("cache_version",v);
}
Best regards,
Fedor Skvortsov