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

Notification

Icon
Error

Options
Go to last post Go to first unread
triplelootz  
#1 Posted : Thursday, July 17, 2008 11:41:38 PM(UTC)
triplelootz

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 5

*Problem:
We want to use the java version of image uploader in IE (as well as Firefox), it works perfectly with FF, but the applet is not displayed when using IE.

* version of Image Uploader ==> 5.1.10.0
* OS used ==> XP (was reproduced with vista)
* Was the problem reproducible? Yes
* Internet Explorer Version
We gathered from this post that we could use the java version in IE, as long as we configured the IUembed.js correctly.

Below is the detailed error we get from the java console (I have translated the first sentence that was in French):

Quote:
Load: classe com.aurigma.imageuploader.ImageUploader.class cannot be found.
java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class
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)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more


It seems IE cannot locate the .jar file...
How is that possible when FF doesn't have a problem locating it?

Thanks for your help

Dmitry  
#2 Posted : Sunday, July 20, 2008 7:06:44 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,

Please, clear Java cache (Java Control Panel->Temporary Internet Files->Settings->Delete Files) and then reboot the computer. It should help.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
triplelootz  
#3 Posted : Monday, July 21, 2008 5:45:30 PM(UTC)
triplelootz

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 5

Hi Dmitri,

I have tried deleting all temp files in the browser then in the Java JRE, then reboot...
It won't change a thing. the applet doesn't display, and the error is the same.

Would you have anymore tips?

Thanks
Dmitry  
#4 Posted : Monday, July 21, 2008 8:38:36 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,

It is very strange. It works on my workstation with the same version of Image Uploader.

Please, try to open the site from another computer and let me know whether it works.

Could you post embedding script here? It would be better if you provide us with access to your site to test it. If you do not want to post it here on public forum - you can submit a case: Create New Case.

Edited by user Monday, July 21, 2008 8:39:16 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
triplelootz  
#5 Posted : Monday, July 21, 2008 11:23:50 PM(UTC)
triplelootz

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 5

Dmitri,

Thanks for your time and consideration of our problem.

I have tried to view our Aurigma page on IE7 with different computers but it never showed up. The bug was replicated: blank space + little cross on the top left.

Therefore, I have prepared an access for you on the test website.
I have sent all the details via PM
Dmitry  
#6 Posted : Tuesday, July 22, 2008 7:26:09 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 Ludo,

You have the following value as the applet code base in your script now:
Code:

iu.javaAppletCodeBase = "aurigma";

Try to change it to the following value:
Code:

iu.javaAppletCodeBase = "./aurigma/";


Also you need to disable ActiveX control, please, add this line to the script:
Code:

iu.activeXControlEnabled = false;
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
triplelootz  
#7 Posted : Wednesday, July 23, 2008 12:13:18 AM(UTC)
triplelootz

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 5

Hi Dmitri,

We have made the changes. We have removed all temp files before testing, and still we get the same error.

One of the developpers here had Internet Explorer showing an additional error message at the bottom left of the window, but we were not able to replicate it.

It said something like:

"applet com.applet.imageuploader could not be initiated"

Does it ring a bell?

triplelootz  
#8 Posted : Wednesday, July 23, 2008 12:17:00 AM(UTC)
triplelootz

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 5

I thought I would give you the full code of the .php page that calls Aurigma:

Quote:
<?php
if(!empty($_SESSION['infoAlbum']) && isConnected()) {
?>
<h3><?php echo title($lang, 'create_origin_title', $nat) ?> - <?php echo $_SESSION['infoAlbum']['nom_album_origin'] ?></h3>

<p><a href='<?php echo $nat; ?>/59-conditions-generales.html'><?php echo title($lang, 'create_origin_TandCs', $nat) ?></a></p>

<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
function ImageUploader_BeforeUpload() {
getImageUploader("ImageUploader").setUploadThumbnail2Watermark("ImageUrl=" +
"http://test.shootsurf.com/watermark/watermark.png;ImageWidth=143;ImageHeight='42;" +
"Position=TopRight;Opacity=10");
}
var iu = new ImageUploaderWriter("ImageUploader1", 630, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "<?php echo $dirAurigma; ?>/ImageUploader5.cab";
iu.activeXControlVersion = "5,1,10,0";
iu.activeXControlEnabled = false;
//alert("ActiveXCodeBAse : "+iu.activeXControlCodeBase);
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "./"+"<?php echo $dirAurigma; ?>";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.1.10.0";
//alert("AppletCodeBAse : "+iu.activeXControlCodeBase);
iu.showNonemptyResponse = "off";

//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "true");
iu.addParam("BackgroundColor", "#ccccff");
iu.addParam("CacheGuiGraphics", "true");
iu.addParam("GuiGraphicsVersion","1");
iu.addParam("CheckFilesBySelectAllButton","true");

//iu.addParam("TreePaneWidth", "234"); //largeur du panel de vue des dossiers

iu.addParam("UploadView", "Thumbnails");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe");




//Configure License Keys
iu.addParam("LicenseKey", "71050-43C8A-00000-0C12B-1E4E4;72050-43C8A-00000-05DCD-A87F9");

//Configure thumbnail settings.
//Send a thumbnail which is resized to have the width which is not larger than the specified one.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "145");
iu.addParam("UploadThumbnail1Height", "90");
iu.addParam("UploadThumbnail1JpegQuality", "60");

iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "600");
iu.addParam("UploadThumbnail2Height", "400");
iu.addParam("UploadThumbnail2JpegQuality", "60");
iu.addParam("UploadThumbnail2Watermark",
"ImageUrl=http://test.shootsurf.com/watermark/watermark01.png;ImageWidth=143;ImageHeight=42;" +
"Position=TopRight;Opacity=10");
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");

//Configure upload
iu.addParam("HashAlgorithm", "SHA");
iu.addParam("UploadSourceFile", "true"); //Upload de l'img originale
iu.addParam("AllowAutoRotate", "false"); //Though it may be convenient, remember that not all cameras recognize orientation properly. Also, reading EXIF data slows the process of folder scanning, and if the folder contains a lot of images, the decrease in speed may be noticeable.
//iu.addParam("UploadThumbnail1Watermark",
// "ImageUrl=http://localhost/AurigmaLogo.png;ImageWidth=86;ImageHeight=63;" +
// "Position=TopRight;Opacity=50");


iu.addParam("FilesPerOnePackageCount", "1"); //Send file per file

iu.addParam("AutoRecoverMaxTriesCount", "10"); //specifies the maximum number of upload attempts that Image Uploader will make before completely stopping the upload process. This value includes the very first attempt and should be at least 1.
iu.addParam("AutoRecoverTimeOut", "5000"); //specifies the interval in milliseconds between the attempts.


//Configure URL files are uploaded to.
iu.addParam("Action", "uploadAurigma.php")

//Configure URL where to redirect after upload.

iu.addParam("RedirectUrl", "<?php echo $nat; ?>/surf-photos/album-unpub/<?php echo $_SESSION['infoAlbum']['id_album_origin']."-".url_title($_SESSION['infoAlbum']['nom_album_origin']); ?>.html")

//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
</script>

<p><a href='<? echo $nat; ?>/upload-simple-surf-photos.html' ><?php echo title($lang, 'upload_java_upload_http', $nat) ?></a></p>
<?php
}
?>
Dmitry  
#9 Posted : Wednesday, July 23, 2008 2:26:10 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,

It seems you have not put ImageUploader5.jar file to the folder specified in codebase. See PM for details.

Edited by user Wednesday, July 23, 2008 2:30:41 PM(UTC)  | Reason: Not specified

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.