Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Fedor  
#1 Posted : Sunday, August 12, 2007 5:25:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
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.

Overview

After 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)

Reason

Syntax of the applet embedding in iuembed.js file became invalid for the latest updates of Firefox browser.

Resolution

This 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+","+v);
	r+=this._getObjectParamHtml("cache_version",v);
}

Edited by user Friday, February 22, 2008 11:09:50 PM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

smandros  
#2 Posted : Friday, January 25, 2008 5:49:15 AM(UTC)
smandros

Rank: Member

Groups: Member
Joined: 9/21/2007(UTC)
Posts: 12

I have a web based application which is used by a number of users.

Some of them who are using Firefox reported the similar issue.

What will happen with the users, who do not have the latest Firefox, if I will apply the patch that you described?

Will it affect the users who are using Internet Explorer?

Alex Makhov  
#3 Posted : Monday, January 28, 2008 6:31:04 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Everything will be OK with IE users because the fix changes only Java version-related code of iuembed.js file.

Everything will be OK with older Firefox users too because the problem was common for all Firefox versions.

Edited by user Monday, January 28, 2008 6:32:12 PM(UTC)  | Reason: Not specified

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

kamikaze  
#4 Posted : Tuesday, February 19, 2008 11:52:19 PM(UTC)
kamikaze

Rank: Newbie

Groups: Member
Joined: 2/19/2008(UTC)
Posts: 1

I am experiencing this issue as well, but I can't find the .JS file that i need to edit. Can you tell me where to look for it on a Windows 2000 system?

Thanks

Trevor

Andrew  
#5 Posted : Sunday, February 24, 2008 1:34:12 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Trevor,

This file (iuembed.js) is a part of redistributives of Image Uploader like .cab and .jar file. Typically it is placed in the same folder with them.

If Image Uploader loads on the page, a link to this file is specified in one of the <script> tags of this page. It looks like this:

Code:
<script type="text/javascript" src="../iuembed.js"></script>

In this case iuembed.js is on one level up relatively the page with Image Uploader.

StewartR3  
#6 Posted : Wednesday, August 6, 2008 6:59:04 PM(UTC)
StewartR3

Rank: Newbie

Groups: Member
Joined: 3/4/2008(UTC)
Posts: 9

I am using java version only, and I get this error in IE. what can I do to resolve this issue? I have the latest version of ImageUploader. 5.1.10
Dmitry  
#7 Posted : Wednesday, August 6, 2008 11:10:04 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Carolyn,

It is a bit strange that you experience this problem on IE. Could you describe the issue in more detail? What error do you get? Please, post the script used to embed Image Uploader to your site here. Also it would be great if you provide us with access to your site to test it. You can send me a link to your site via PM or create a case with it.

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.