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

Notification

Icon
Error

Options
Go to last post Go to first unread
LilyC  
#1 Posted : Thursday, October 12, 2006 11:56:55 PM(UTC)
LilyC

Rank: Member

Groups: Member
Joined: 10/12/2006(UTC)
Posts: 4

I am making some test of the component with firefox before publish the solution for the customer in my production server.
In some cases the jar component do not download and the firefox give me this report.

Code:
cargar: clase com.aurigma.imageuploader.ImageUploader.class not 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

basic: Excepción: java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class

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

basic: Modalidad impuesta

cargar: clase com.aurigma.imageuploader.Thumbnail.class not found.

java.lang.ClassNotFoundException: com.aurigma.imageuploader.Thumbnail.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

basic: Excepción: java.lang.ClassNotFoundException: com.aurigma.imageuploader.Thumbnail.class

java.lang.ClassNotFoundException: com.aurigma.imageuploader.Thumbnail.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



I check te path reference, the jar is on the root directory of the project and i am reference
iu.javaAppletCodeBase ="./"

thanks,
Lily

Edited by user Tuesday, December 18, 2007 8:36:19 PM(UTC)  | Reason: Not specified

LilyC
Alex Makhov  
#2 Posted : Monday, October 16, 2006 12:59:52 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello Lily,

The error message informs you that the browser can not find the .jar-file file with the applet. The following string
Code:
iu.javaAppletCodeBase ="./"

means that the file has to be in the same folder where the page with Image Uploader is situated. As I understand your page is not situated in the root folder so that is a reason of the problem. Relocate the file or change the iu.javaAppletCodeBase field value to the appropriate path.

Edited by user Tuesday, February 19, 2008 4:25:18 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
pafisc  
#3 Posted : Monday, October 23, 2006 5:53:44 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

I have a similar problem, but I only get one error:

Code:
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



My page looks like this:

Code:
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,47,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../ImageUploader/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.50.0";



And since the activeX control works but not the Applet (in Forefox), the path shouldn't be the problem.

I'm using the trial version by the way.

The catalog/file structure is as follows:
~/ImageUploader/ImageUploader4.cab
~/ImageUploader/ImageUploader2.jar
~/ImageUploader/iuembed.js
~/ImageUploader/Resources/[language.js files]
~/defaultWithFrames.aspx
~/theFrameWithTheControl.aspx
~/Webfunctions/theControlWithImageUploader.ascx

So, can the problem have somthing to do with using frames and javascript? Or with the fact that the ImageUploader is in a control.


Please help, because I really think this would be a create product for my site if I get it to work.

Sincearly
Patrik Fischer
patrik_fischer@hotmail.com

Edited by user Tuesday, February 19, 2008 4:25:33 PM(UTC)  | Reason: Not specified

pafisc  
#4 Posted : Monday, October 23, 2006 8:28:46 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

I managed to get it to work when I used iu.javaAppletCodeBase = "./";

So the path should be relative to the iuembed.js file for java applet and relative to the page for ActiveX???? If soo, you should tell that in your comentaries.

Please still answer me, even though I think I have solved it. It could be that for some other browsers, it still doesn't work.

Sincerely
Patrik Fischer
Eugene Kosmin  
#5 Posted : Tuesday, October 24, 2006 2:00:28 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello,

While trying to reproduce your problem, I checked that the following code works right with a similar file/catalog structure, i.e. path in iu.javaAppletCodeBase is relative to page, but not to iuembed.js.

Here is my test code:
Code:
<script language="javascript" src="../scripts/base/iuembed.js"></script>
...
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,47,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../ImageUploader/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.50.0";


and file structure:

~/ImageUploader/ImageUploader2.jar
~/ImageUploader/ImageUploader4.cab
~/scripts/base/iuembed.js
~/WebFunctions/PageWithImageUploader.aspx

Edited by user Monday, February 25, 2008 6:24:56 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin
The Aurigma Development Team
pafisc  
#6 Posted : Tuesday, October 24, 2006 6:29:03 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

Hi Jin

Thanks for helping me out.

And did you test the javaVersion? with Firefox? Because the ActiveX works just fine. I find it weird I should have different paths even though the .jar and .cab is in the same folder. And it really solved the problem to change the path (javaAppletCodeBase).

Sincerely
Patrik Fischer
Eugene Kosmin  
#7 Posted : Tuesday, October 24, 2006 7:56:28 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello Patrik,

Yes, I tested it with Firefox 1.5.0.7. Just in case, try to clear Mozilla's cache (Tools->Clear private data) to be sure that no cached pages are used. Also I tried to set incorrect path in javaAppletCodeBase and behavior was expected - classNotFound exception occurred.

And what do you mean by 'ActiveX works just fine'? After installing ActiveX control OCX file remains in IE cache, and later, when you load some page with this control cached OCX file is used, but not CAB. I suppose, if you delete Image Uploader from IE AddOn manager it will not be installed through your page.

Edited by user Monday, February 25, 2008 6:25:11 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin
The Aurigma Development Team
pafisc  
#8 Posted : Tuesday, October 24, 2006 8:30:44 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

Clearing the cash didn't do it. And when I changed back to "../ImageUploader/" from "./" it stopped working again.

With ActiveX I ment that it has worked with "../ImageUploader/...cab" since the beginning.

Sincerealy
Patrik Fischer
pafisc  
#9 Posted : Tuesday, October 24, 2006 11:08:46 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

I tried it from another computer, that couldn't have any cash, and that solved some of the weird things. The "./" for applet didn't work, and really shouldn't. Only ./ImageUploader/" worked.

Remember the catalog structure:
/page.aspx
/Webfunctions/Control.ascx
/ImageUploader/[.js, .jar, .cab]

Since the page is in the root, even though the control is in /Webfunctions/, the path should be "./ImageUploader/" for both ActiveX and javaApplet. And this work WEEHOO!

BUT, ActiveX did actually work with "../ImageUploader/" too. That's a little weird.


Sincerealy
Patrik Fischer

Eugene Kosmin  
#10 Posted : Wednesday, October 25, 2006 12:27:02 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Are you sure that ActiveX version wasn't installed on the second computer before? If it was, ActiveX version will work independently of activeXControlCodeBase path. This path is used only once for installation process.
Best regards,
Eugene Kosmin
The Aurigma Development Team
pafisc  
#11 Posted : Monday, October 30, 2006 7:56:38 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

I have tried it on several different computers and this is what I have, and it works:

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,47,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./ImageUploader/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.50.0";

And the files are in the same folder.



I have another thing though, that I didn't notice before. It seems like the page reload when you press the yellow IE bar to approve the ActiveX. A reload makes my site log out (I have frames and a complex login system), and therefor you need to relogin and go back to the page with the ImageUploader before you can install it. Really anoying, but I quess it is no work around that you know of?

I write this here because I think I didn't need to relogin the first time. But I can imagine the wrong path makes the yellow bar click reload.

Sincearly
Patrik Fischer
Eugene Kosmin  
#12 Posted : Tuesday, October 31, 2006 1:14:08 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Page reload after ActiveX control installation is normal behavior for IE. Unfortunately I don’t know any workarounds for this case.

Edited by user Monday, February 25, 2008 6:25:29 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin
The Aurigma Development Team
pafisc  
#13 Posted : Wednesday, November 1, 2006 8:43:14 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

I have decided to use java for everyone. This is fine since most IE users can handle applets too.

Meanwhile, my evaluation time expired (I need to test it a bit longer). And I followed all the steps and didn't managed to get the applet on the server to work.

I'm not a good customer :( ....

I managed to get it to reload by changing version, and I did reload the installer and copied the jar file to the server. Though I couldn't seem to figure out my account on MyAurigma and had to register a new user, can this be it? Also, I only executed the ResetIUEvaluationPeriod.reg localy, do I need to do that on the server too? (I have no access right now)

Best regards
Patrik Fischer

Alex Makhov  
#14 Posted : Thursday, November 2, 2006 1:04:25 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

The new release will be available at the nearest time (today).
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
pafisc  
#15 Posted : Sunday, November 5, 2006 8:29:07 PM(UTC)
pafisc

Rank: Member

Groups: Member
Joined: 10/23/2006(UTC)
Posts: 8

You're the man Alex, I didn't even look at the release date last time :)

Best Regards
Patrik Fischer
Alex Makhov  
#16 Posted : Wednesday, November 8, 2006 4:44:05 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

If you have any more problems feel free to write to this forum.

Edited by user Tuesday, February 19, 2008 4:27:42 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

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.