Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Undetermined problem with Java version
Rank: Member
Groups: Member
Joined: 10/19/2006(UTC) Posts: 3
|
Hi, I am using Image Uploader Dual license in our site from a short time. With ActiveX version (with IE) all is OK. But with Java version with Firefox 1.5.0.7 I have some strange problem. Here the situation: 1. I open the browser and type site URL 2. Page and applet are loaded normaly. 3. I pickup 1-2 images into Upload Pane. 4. Click on custom button Send (which fire event getImageUploader('ImageUploader1').Send() ) 5. Upload go normaly, images are on the server and applet redirect to another page 6. I click to link and return to applet for more uploads. 7. Pickup 1-2 image into Upload Pane. 8. Click on the same custom button Send . 9. Upload trying to start but it freeze on popup Progress dialog with text - Waiting for replay and after fiew seconds jump another alert with text - Image Uploader encountered some problem. If you see the message - contact webmaster. 10. Any other attempt to upload finish with this result until Firefox is not restarted. Then first upload go normaly, second and more fails Note: This problem not persist if I use original Send button (build on applet) In Java consove text is: Code:Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
ImageUploader version: 2.0.50
Current document URL: http://demo
Reading cookies
Cookies: PHPSESSID=601fc6e0b4ce2ab45e9c2215af07cfac
Reading referer
Referer: http://demo
UploadPane version: 2.0.50
Reading additional form content
Form element:<hidden><action><make_order>
Form element:<hidden><mode><advance>
Wrong element:<button><><>
Wrong element:<select-one><><10x15>
Wrong element:<text><><1>
Wrong element:<select-one><><>
Wrong element:<text><><>
Wrong element:<select-one><><>
Wrong element:<text><><>
Wrong element:<checkbox><><on>
Form element:<text><login_user_email><>
Form element:<password><login_user_pass><>
Form element:<button><login><1>
Form element:<text><order_user_name><>
Form element:<text><order_user_tel><>
Form element:<text><order_user_email><>
Form element:<select-one><delivery_city_id><>
Form element:<select-one><delivery_store_id><>
Radio/Checkbox:<order_save_data><unchecked> (does not sent)
Form element:<text><order_promo_code><>
Form element:<textarea><order_notes>< >
Wrong element:<button><><>
Wrong element:<button><><>
Additional form processing done
Exception occured
-----
Exception class: class java.security.AccessControlException
-----
access denied (java.lang.RuntimePermission preferences)
-----
java.security.AccessControlException: access denied (java.lang.RuntimePermission preferences)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.util.prefs.Preferences.userRoot(Unknown Source)
at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
at com.aurigma.imageuploader.tools.a.c(Unknown Source)
at com.aurigma.imageuploader.tools.a.d(Unknown Source)
at com.aurigma.imageuploader.upload.b.a(Unknown Source)
at com.aurigma.imageuploader.upload.b.b(Unknown Source)
at com.aurigma.imageuploader.upload.b.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-----
getResponseBodyAsString:4
Exception occured
-----
Exception class: class java.security.AccessControlException
-----
access denied (java.lang.RuntimePermission preferences)
-----
java.security.AccessControlException: access denied (java.lang.RuntimePermission preferences)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.util.prefs.Preferences.userRoot(Unknown Source)
at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
at com.aurigma.imageuploader.tools.a.c(Unknown Source)
at com.aurigma.imageuploader.tools.a.d(Unknown Source)
at com.aurigma.imageuploader.upload.b.a(Unknown Source)
at com.aurigma.imageuploader.upload.b.b(Unknown Source)
at com.aurigma.imageuploader.upload.b.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-----
getResponseBodyAsString:4
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[0]
[ErrorPage]
[EndOfErrorPage]
In resume: - first upload go normaly, second and more - fails (until restart) when custom send buton is used - Problem not persist if I use original Send button (build on applet) - the problem repeat in many computers and with 2 diffrent servers (original and development) Please help Any idea ? Veselin Edited by user Tuesday, December 18, 2007 8:51:44 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello Veselin,
1)Try to find the differences between your code and the code in the UserQuota sample which is shipped with Image Uploader samples set. I have tested it with Image Uploader for Java 2.0.50 and it works fine. 2)According to your Java console text there are some problems with your form processing. Please ensure that you did not add the Applet insertion code inside the tags. That could be the reason of your problem.
|
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/19/2006(UTC) Posts: 3
|
Hi Alex, Thanks for the help. I read closely your instructions and here the result. You was right - my applet code was inside the <form> ... </form> section. I change it but this did not solve the problem. I also make a very simple demo of problem http://demo.fotobravo.com/test.htmlYou can see it here in action. Upload twise somthing using "My send" button. After second upload you will see that applet stop working (as I describe above) After a lot of test I found that the problem appear only when I add event listener for before upload Code:iu.addEventListener("BeforeUpload", "my_before_upload");
I aslo try your sample UserQuota which work normaly unitil I add the same line (iu.addEventListener("BeforeUpload", "my_before_upload");) The function my_before_upload is only 1 line Code:function my_before_upload(){
alert('OK');
}
When I remove the BeforeUpload Listener - all work fine. Here the copy ot Java Console: Code:Reading additional form content
Exception occured
-----
Exception class: class java.security.AccessControlException
-----
access denied (java.lang.RuntimePermission preferences)
-----
java.security.AccessControlException: access denied (java.lang.RuntimePermission preferences)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.util.prefs.Preferences.userRoot(Unknown Source)
at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
at com.aurigma.imageuploader.tools.a.c(Unknown Source)
at com.aurigma.imageuploader.tools.a.d(Unknown Source)
at com.aurigma.imageuploader.upload.b.a(Unknown Source)
at com.aurigma.imageuploader.upload.b.b(Unknown Source)
at com.aurigma.imageuploader.upload.b.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-----
getResponseBodyAsString:4
Exception occured
-----
Exception class: class java.security.AccessControlException
-----
access denied (java.lang.RuntimePermission preferences)
-----
java.security.AccessControlException: access denied (java.lang.RuntimePermission preferences)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.util.prefs.Preferences.userRoot(Unknown Source)
at java.util.prefs.Preferences.userNodeForPackage(Unknown Source)
at com.aurigma.imageuploader.tools.a.c(Unknown Source)
at com.aurigma.imageuploader.tools.a.d(Unknown Source)
at com.aurigma.imageuploader.upload.b.a(Unknown Source)
at com.aurigma.imageuploader.upload.b.b(Unknown Source)
at com.aurigma.imageuploader.upload.b.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-----
getResponseBodyAsString:4
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[0]
[ErrorPage]
[EndOfErrorPage]
Please, help. Thanks Veselin Edited by user Tuesday, February 19, 2008 3:22:41 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/20/2005(UTC) Posts: 12
|
Hi, we do still have the same Problem. I got the advice to use setTimeout to call the Send() Method, but this did not help at all. We do also not have the generated JavaApplet inside Form Tags. So what we are right now doing is: * Tell our customers to use the standard HTML based uploader or * Restart their browser * We cannot fix this issue, as it is out of our scope * We are waiting for the next release of the ImageUploader, which is hopefully solving the Problem ! Regards, Philipp
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/19/2006(UTC) Posts: 3
|
Hi, Thanks for info. The situation is the same. I hope that the fix will come shortly.
Veselin
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
I have answered you in a Private Message. The bug fix will be available in the next release. |
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Undetermined problem with Java version
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.