I just compared HTTP traces between AJAX-uploading a small file and large file and noticed that in both cases the same POST call is made from the client. However, with small file upload POST result returns quickly with status 200 and with large file the POST call never returns.
When I pause my debugging session I can see that the code is blocking in WebResponse#write(AppendingStringBuffer asb). Why would the AJAX-upload POST hang? Thanks, Alec On Tue, Jan 10, 2012 at 11:55 AM, Alec Swan <alecs...@gmail.com> wrote: > Correct, the client does not complete even though my server code > execution finishes. > > There are no Javascript errors. It is possible that the info window is > not a part of the DOM but I don't know how to verify that. > > The problem is caused by adding a component from the parent page to > ART during AJAX upload. And it's only broken in a modal window during > very large uploads! > > I enabled Wicket debug logging and noticed different messages logged > during upload from modal window and regular page. Here is the first > line that is different: > Modal: org.apache.wicket.MarkupContainer - Add _header_ to [Page class > = MyPage, id = 3, version = 0, ajax = 2] > Page: org.apache.wicket.MarkupContainer - Add _header_ to [Page class > = MyPage, id = 4, version = 0] > > Does "ajax = 2" have any significance here? > > Thanks, > > Alec > > On Tue, Jan 10, 2012 at 10:49 AM, Doug Leeper <douglee...@yahoo.com> wrote: >> I am assuming what you mean by hanging is that the call on the client browser >> doesn't complete or is interrupted for some reason. The hanging is not >> occurring on the server side...correct? >> >> Are there any javascript errors? I ask b/c you indicated: >> >> "INFO: Invoking pre-call handler(s)..." and before "INFO: Response parsed. >> Now invoking steps...". >> >> Could be that the info window is not there in the DOM any more? >> >> Not that these are answers but steps I would like to solving this problem. >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/AJAX-upload-in-modal-window-hangs-when-file-size-is-too-large-L-tp4276504p4282736.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org