Puzzle: Custom AjaxFlexibleUpload not working in Linux
Hello list, I have a weird problem that's driving me nuts... I know that I'm not going to provide enough info to completely debug the issue so I apologize in advance. I think I just need a hint to point in the right direction. I needed a clone of ERAttachmentFlexibleUpload which uses AjaxFlexibleFileUpload with the only difference in the progress bar (i used http://twitter.github.com/bootstrap/components.html#progress the striped bar). The div structures are different so I chose the approach of cloning WOnder stuff in my project. Everything works like a charm on my Mac (even if I deploy the application) the problem arises when I deploy on Linux... The upload works but the bar doesn't move and the client browser gets kind of stuck. The exact same application (with Project, User and Local frameworks embedded) has a totally different behavior on Mac or Linux, which makes sense if I used DBs but there is no DB involved in this issue. I turned on some logging on the app: As soon as I start the upload I get a ton of those messages: DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 0; } then after a while I get DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 2; progress = 0; filename = test.mov; } progress stays at 0 forever... then it completes the upload! If I use the twin component from AjaxFramework everything works ok both in Mac and Linux so it's clear that i screwed up something, I just don't know what. Any hints/similar issues? Thanks, Matteo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Puzzle: Custom AjaxFlexibleUpload not working in Linux
You are running Java 6 on both your Mac and Linux? JVM on Linux is OpenJDK or coming from Sun? Hello list, I have a weird problem that's driving me nuts... I know that I'm not going to provide enough info to completely debug the issue so I apologize in advance. I think I just need a hint to point in the right direction. I needed a clone of ERAttachmentFlexibleUpload which uses AjaxFlexibleFileUpload with the only difference in the progress bar (i used http://twitter.github.com/bootstrap/components.html#progress the striped bar). The div structures are different so I chose the approach of cloning WOnder stuff in my project. Everything works like a charm on my Mac (even if I deploy the application) the problem arises when I deploy on Linux... The upload works but the bar doesn't move and the client browser gets kind of stuck. The exact same application (with Project, User and Local frameworks embedded) has a totally different behavior on Mac or Linux, which makes sense if I used DBs but there is no DB involved in this issue. I turned on some logging on the app: As soon as I start the upload I get a ton of those messages: DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 0; } then after a while I get DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 2; progress = 0; filename = test.mov; } progress stays at 0 forever... then it completes the upload! If I use the twin component from AjaxFramework everything works ok both in Mac and Linux so it's clear that i screwed up something, I just don't know what. Any hints/similar issues? Thanks, Matteo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Puzzle: Custom AjaxFlexibleUpload not working in Linux
Both 1.6 and yes it's Sun JVM. Maybe I'm too demanding and I should lower the refreshTime? Now it's 1000. Matteo On Fri, Jun 15, 2012 at 7:34 PM, Pascal Robert prob...@macti.ca wrote: You are running Java 6 on both your Mac and Linux? JVM on Linux is OpenJDK or coming from Sun? Hello list, I have a weird problem that's driving me nuts... I know that I'm not going to provide enough info to completely debug the issue so I apologize in advance. I think I just need a hint to point in the right direction. I needed a clone of ERAttachmentFlexibleUpload which uses AjaxFlexibleFileUpload with the only difference in the progress bar (i used http://twitter.github.com/bootstrap/components.html#progress the striped bar). The div structures are different so I chose the approach of cloning WOnder stuff in my project. Everything works like a charm on my Mac (even if I deploy the application) the problem arises when I deploy on Linux... The upload works but the bar doesn't move and the client browser gets kind of stuck. The exact same application (with Project, User and Local frameworks embedded) has a totally different behavior on Mac or Linux, which makes sense if I used DBs but there is no DB involved in this issue. I turned on some logging on the app: As soon as I start the upload I get a ton of those messages: DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 0; } then after a while I get DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 2; progress = 0; filename = test.mov; } progress stays at 0 forever... then it completes the upload! If I use the twin component from AjaxFramework everything works ok both in Mac and Linux so it's clear that i screwed up something, I just don't know what. Any hints/similar issues? Thanks, Matteo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Puzzle: Custom AjaxFlexibleUpload not working in Linux
Ok, I think I got a little hint: if the file is big enough (like 10 MB over a slow ADSL connection) after a while it starts updating the bar... But it's wy more than 1 second or even the 2 seconds default. Another weird thing: during the long wait the browser (uhm, Safari) looks like it's stuck. BTW has anybody managed to use something like this in WO? http://blueimp.github.com/jQuery-File-Upload/ This is what my client really wants... Thanks, Matteo On Fri, Jun 15, 2012 at 8:02 PM, Matteo Centro woli...@matteocentro.itwrote: Both 1.6 and yes it's Sun JVM. Maybe I'm too demanding and I should lower the refreshTime? Now it's 1000. Matteo On Fri, Jun 15, 2012 at 7:34 PM, Pascal Robert prob...@macti.ca wrote: You are running Java 6 on both your Mac and Linux? JVM on Linux is OpenJDK or coming from Sun? Hello list, I have a weird problem that's driving me nuts... I know that I'm not going to provide enough info to completely debug the issue so I apologize in advance. I think I just need a hint to point in the right direction. I needed a clone of ERAttachmentFlexibleUpload which uses AjaxFlexibleFileUpload with the only difference in the progress bar (i used http://twitter.github.com/bootstrap/components.html#progress the striped bar). The div structures are different so I chose the approach of cloning WOnder stuff in my project. Everything works like a charm on my Mac (even if I deploy the application) the problem arises when I deploy on Linux... The upload works but the bar doesn't move and the client browser gets kind of stuck. The exact same application (with Project, User and Local frameworks embedded) has a totally different behavior on Mac or Linux, which makes sense if I used DBs but there is no DB involved in this issue. I turned on some logging on the app: As soon as I start the upload I get a ton of those messages: DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 0; } then after a while I get DEBUG it.altera.dsl.ajax.ALTFlexibleFileUpload - AjaxFlexibleFileUpload2.uploadState: {state = 2; progress = 0; filename = test.mov; } progress stays at 0 forever... then it completes the upload! If I use the twin component from AjaxFramework everything works ok both in Mac and Linux so it's clear that i screwed up something, I just don't know what. Any hints/similar issues? Thanks, Matteo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com