--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
I'm using Tapestry 5.3.3 and AjaxUpload comp blogged by Taha here:
http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/
Everything works fine but there is a strange problem. Sometimes the file
uploaded is alwasy empty(size 0). I checked
AjaxFileUploadDecoderImpl.setupUploadedFile and suspected the problem is
in TapestryInternalUtils.copy. So I tried to read the inputstream of the
request myself. But strangely I always got return value -1 when I call
the inputream.read when the problem happens. Looks the inputstream is
totally empty. I checked the request sent by browser with firebug and
can see the content is sent by post. Don't know why I just can not read
it at server end.
One more interesting thing is that, this problem only happens sometimes
after tomcat6 is recycled. Fore example, I recycle tomcat 10 times and
only get problem with 1 time. With that recycle, all the file upload
fails. The problelm persists until I recycle tomcat again. With a good
recycle, the problem doesn't happen at all. I tested this on several
machines with different tomcat versions and see the same problem on all
of them. I can not get any clue and hope someone could give me some
light. Thanks in advance.
- Strange problem with Taha's AjaxUpload Rural Hunter
- Re: Strange problem with Taha's AjaxUpload Pavel Vodenski
- Re: Strange problem with Taha's AjaxUpload Rural Hunter
- Re: Strange problem with Taha's AjaxUploa... Taha Hafeez Siddiqi
- Re: Strange problem with Taha's AjaxU... Rural Hunter
- Re: Strange problem with Taha's ... Taha Siddiqi
- Re: Strange problem with Tah... Rural Hunter
- Re: Strange problem with... Taha Siddiqi
- Re: Strange problem with... Rural Hunter