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

Notification

Icon
Error

Options
Go to last post Go to first unread
far41  
#1 Posted : Thursday, October 26, 2006 11:39:39 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hello,
I am working with asp.net 2.0. I have created a directory and copied
- the Optimized Upload directory
- ImageUploader2.jar, ImageUploader4.cab, iuembed.js and web config

ActiveX and JAVA work great in that case.

Then I have copied the exact same files (except web config) in my website directory in the same locations: activeX is ok but problem with java under Firefox : it doesn't load. I just see the red cross in the corner
Here is what I have :
Code:
charger : classe com.aurigma.imageuploader.ImageUploader.class introuvable.
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


I have seem similar posts where the error was the jar path. But in my case I have not modified anything : it's just copy and paste.

The only difference I could see was the web config. So I have used the example one for my site: still the problem. And my web config also works on the example site.

What can I be doing wrong since I really don't see the difference between the example and my site ?

Thank you for your help.

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

Alex Makhov  
#2 Posted : Friday, October 27, 2006 1:32:04 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Check if the Jar-file is available to be downloaded from your site according to the specified path.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
far41  
#3 Posted : Friday, October 27, 2006 7:07:28 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Thanks for your answer.
The file is in the root, same as in the example.

Here is what works:
Under c:/inetpub/wwwroot/aurigma I have the jar, cab, js, default, web.config files and the OptimizeUpload directory
In that case it works fine

I put the same in under my own site
Under c:/inetpub/wwwroot/mysite I have the jar, cab, js, default, web.config files and the OptimizeUpload directory
And it doesn't work.

I didn't modify any file, and the paths are similar. For sure I have many other files and directories under my site.
Is there a possible conflict?
What can it be ?

Your help is greatly appreciated since we are about to purchase image loader very soon.

Thanks.

far41  
#4 Posted : Sunday, October 29, 2006 6:52:33 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hello,

I have made other tests on other new sites and I confirm that it works fine under IE and FF (controls are loaded and thumbnails created).

But it still doesn't work under our main site, where we want to use image uploader, even though I use the exact same demo files under the exact same directories/paths.
The activeX loads under IE but the java not under FF. That's what I explained previously.
Moreover I have found ANOTHER MAJOR issue, under IE: when I try to load a file (even very small, few kb) then I get the error: "Upload failed (the connection was interrupted)".

So there is really something I still don't understand, and maybe a unique reason for these 2 problems.

Please let me know what you think about these problems.

Thank you.


far41  
#5 Posted : Monday, October 30, 2006 7:02:55 AM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

I have finally found why it doesn't work with java.

The problem is a LOCALIZATION PROBLEM WITH THE JAVA CONTROL.

Here is what I have under my global.asax:

Code:
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
        
        Dim sLanguage As String
        sLanguage = HttpContext.Current.Request.QueryString("Language")
        
        If sLanguage = Nothing Then
            sLanguage = HttpContext.Current.Request.UserLanguages(0)
        End If
        System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(sLanguage)
        System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture(sLanguage)
                
    End Sub


It works if I remove it, but for sure I don't want to do that.

WHAT CAN WE DO TO HAVE IMAGE UPLOADER WORK UNDER OUR SITE ?

Your help is greatly appreciated. We have spent hours to try to understand what was going because it's really urgent for us, and we finally found the reason of our problem but we don't know how to solve that.

Thanks.





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

far41  
#6 Posted : Tuesday, October 31, 2006 8:52:46 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Alex, are you around ?

Do you have any suggestion about this localization problem with the java control ?

Tx
Alex Makhov  
#7 Posted : Thursday, November 2, 2006 1:06:57 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Try to set the javaAppletCodeBase to the full URL (not a relative, as usual):
Code:
iu.javaAppletCodeBase='http://your.server.name/applets/';

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

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Alex Makhov  
#8 Posted : Thursday, November 2, 2006 8:44:57 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Here is the problem resolution from one of our clients:
Quote:

The problem is really in the global.asax where my code was not robust enough to handle a behavior I had not expected : just before the end of the upload process (when the small upload window is still on), the application goes through the Application_BeginRequest, and there the HttpContext.Current.Request.UserLanguages is actually NULL, so that it throws an exception (it is normally never null).
Since my code was not handling that case, there were problems to load, save...

So please try it.

Edited by user Tuesday, February 19, 2008 4:38:28 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.