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
; > import org.apache.struts2.ServletActionContext; >> > import >> org.apache.struts2.interceptor.ServletRequestAware; >> > >> > import sun.util.logging.resources.logging; >> > >> > import com.opensymphony.xwork2.ActionSupport; >> > import com.shoutloud.model.Item; >> > import co

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

upload fail occasionally

2007-03-26 Thread Kurapica
Hi all, I am using struts 2.0.6 and encountered a submit problem. I have a form with enctype="multipart/form-data" property. there're other text fields beside . when I submit, at most time it works fine, but I found that occasionally all fields are null. I have replaced commons-fileupload, commo