• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem with WOFileUpload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with WOFileUpload


  • Subject: problem with WOFileUpload
  • From: Jean-François Veillette <email@hidden>
  • Date: Wed, 22 Mar 2006 14:16:49 -0500

Situation :
We have an application where users can submit files to the system. We use WOFileUpload to stream the file directly to the disk.
There is at least 500 files uploaded per day (up to 1000), counting for something between 100Mb and 150Mb of data.


Problem :
Every day, we get about 2 to 5 upload that fails with :
Error writing to output stream: java.io.FileOutputStream@6de8a7
java.io.IOException: Connection reset by peer: Amount read didn't match content-length


And at that point, we are looking for tips on where/what to look to fix the problem.

Here is the Stack on one such problem :
java.lang.RuntimeException: Error writing to output stream:
java.io.FileOutputStream@6de8a7
java.io.IOException: Connection reset by peer: Amount read didn't match content-length
at com.webobjects.appserver._private.WOFileUpload.takeValuesFromRequest(WOF ileUpload.java:271)
at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81)
at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(W ODynamicGroup.java:89)
at com.webobjects.appserver._private.WOConditional.takeValuesFromRequest(WO Conditional.java:41)
at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81)
...


Server configuration :
On this server, we run both apache 1.x and multiples wo applications (multiple application and multiple instances) : WO5.2.3 / Apache 1.x / MacOS-X 10.3.9.


My own impression :
We can reproduce the problem when 2 sessions (one Mac/FireFox, one PC/IE) tries to upload a file (less than 1 mb each). After a couple of successful tries (up to 3) we where able to generate the error. So this lead me to think about a thread/race condition problem either on the apache-wo adaptor or in the application implementation about file upload.


Thanks for any suggestions,

- jfv

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: problem with WOFileUpload
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: help for Objective C
  • Next by Date: Re: help for Objective C
  • Previous by thread: Re: help for Objective C
  • Next by thread: Re: problem with WOFileUpload
  • Index(es):
    • Date
    • Thread