Re: T5: FileUpload and time out(revisited)

2008-07-16 Thread Angelo Chen
Hi Robert, Thanks for your suggestion, will give it a try. I notice that this time out problem is like this: in the development machine(Macbook pro) with Firefox3, everything works. in the production machine(Ubuntu) with firefox3, time out error occurs from time to time. now I change to Firefox

Re: T5: FileUpload and time out(revisited)

2008-07-16 Thread Robert R. Sanders
One other thing to look into is www.swfupload.org (I think there may be one or two other similar projects). Its a Flash 'applet' that can be used to do HTTP uploads; its got pluses and minuses, but at least it has a little better feedback than the standard web browser upload. Angelo Chen wrot

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread Angelo Chen
Hi Martijn, Thanks for the link, I just checked and think my tomcat installation is ok because it's 6.0.16, that bug is with Tomcat 4, also I'm not using IIS redirector. my need is really simple, probably all the other guys need this, how to handle the unsuccessful file upload either due to time

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread Martijn Brinkers (List)
Just to be sure. Have you checked out this? http://commons.apache.org/fileupload/faq.html#read-timeout Martijn On Tue, 2008-07-15 at 20:21 -0700, Angelo Chen wrote: > Hi Martijn, > > I'll give this a try, thanks. it is kind of difficult to test this situation > in IDE, is there a way to simulat

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread Angelo Chen
Hi Martijn, I'll give this a try, thanks. it is kind of difficult to test this situation in IDE, is there a way to simulate a time out in Tomcat? Martijn Brinkers (List)-2 wrote: > > Have you tried to create a RequestExceptionHandler and catch the > FileUploadBase.IOFileUploadException? You c

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread Martijn Brinkers (List)
Have you tried to create a RequestExceptionHandler and catch the FileUploadBase.IOFileUploadException? You can then redirect to a page telling the user that there was a timeout See for an example of RequestExceptionHandler: http://wiki.apache.org/tapestry/Tapestry5RedirectException Martijn Brin

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread AngeloChen960
Hi Macus, Thanks for replying. I think that will improve, but I'm trying add code to handle those unsuccessful file uploads when users have a slow Internet connection, I just want to inform the user slow connection, try it later. Angelo Marcus-11 wrote: > > Hi Angelo, > > what if you increa

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread Marcus
Hi Angelo, what if you increase session timeout in web.xml? Marcus

Re: T5: FileUpload and time out(revisited)

2008-07-15 Thread AngeloChen960
Hi, Tapestry-upload is becoming a problem, maybe it was due to my ignorance of this component, here is the situation: My app works very well in a local area network, but when deployed in the Internet, frequent time out errors pop up, there are times you see it in the log, and times it just dump

Re: T5: FileUpload and time out

2008-07-11 Thread Angelo Chen
Hi Josh, here is the exception, happens often when file is a little big, say around 900k, the message is a little lengthy, sorry for that: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. e

Re: T5: FileUpload and time out

2008-07-10 Thread Josh Canfield
Hey Angelo, It'd be helpful to see the exception that you're talking about. Josh On Thu, Jul 10, 2008 at 12:11 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > probably I did not make my original question clear, the UploadExample > works, > however, there are situations that we got a time

Re: T5: FileUpload and time out

2008-07-10 Thread Angelo Chen
Hi, probably I did not make my original question clear, the UploadExample works, however, there are situations that we got a time out exception, how to track this exception in the following example? thanks for the help, Angelo Angelo Chen wrote: > > Hi, > > following sample works, but how to

T5: FileUpload and time out

2008-07-08 Thread Angelo Chen
Hi, following sample works, but how to determine if timeout error occurs? thanks. public class UploadExample { private UploadedFile file; public UploadedFile getFile() { return file; } public void setFile(UploadedFile file) {