Re: upload fail occasionally [also Re: File upload fails first time, then works after page reload]

2007-04-11 Thread Eric Rank
I ran into the same problem with inconsistent behavior when uploading files. Sometimes i get a RequestFacade, and sometimes I get the right MultiPartRequestWrapper. I dug into the struts source code a little and I think I found the culprit. in org.apache.struts2.dispatcher.FilterDispatche

Re: upload fail occasionally

2007-04-05 Thread torben
I have now done some more studies by making my own fileUploadInterceptor class. It is complety the same as org.apache.struts2.interceptor.FileUploadInterceptor, except that I write in the log the class name of the HttpServletRequest I get in the intercept method. If I bypass apache as fronte

Re: upload fail occasionally

2007-04-05 Thread Dave Newton
--- nordland <[EMAIL PROTECTED]> wrote: > I had the same problem too. The invocation of the > ActionContextCleanUp-filter was the right choice. > Fileupload works now without any errors. That's great! I or someone else will add something to the wiki page, although I sure wish I could find the th

Re: upload fail occasionally

2007-04-05 Thread nordland
I had the same problem too. The invocation of the ActionContextCleanUp-filter was the right choice. Fileupload works now without any errors. Thanks! Dave Newton-4 wrote: > > Did either of you try specifying the context cleanup > filter? > > > contextCleanup > > org.apache.struts2.d

Re: upload fail occasionally

2007-04-04 Thread torben
Thanks for the tip. But it does not work in my case. best regards Torben Frøberg Dave Newton wrote: Did either of you try specifying the context cleanup filter? contextCleanup org.apache.struts2.dispatcher.ActionContextCleanUp and put it first in the filter mapping. I have yet

Re: upload fail occasionally

2007-04-04 Thread Dave Newton
Did either of you try specifying the context cleanup filter? contextCleanup org.apache.struts2.dispatcher.ActionContextCleanUp and put it first in the filter mapping. I have yet to have any issues w/ file upload since including that and I still think I vaguely recall a thread about

Re: upload fail occasionally

2007-04-04 Thread torben
I cannot help you. But I have exactly the same problem. Sometimes it seems that, the execute method is called before the HTTP client has finished uploading the file. This results in a null value for the File object upload. But the file is uploaded, the problem is just, he the execute methd is