I believe this exception is actually misleading -- the same thing happens with that UTF8+FileUpload bug. I suspect this is related to the multipart iterator already having consumed the request parts, and it ends up in a weird path in WOFileUpload component that gives this confusing error message. This is just a theory, but I know this exact message occurs under similar circumstances.

ms

On Feb 24, 2007, at 12:49 PM, Chuck Hill wrote:

Do you have overwrite set on the the file upload? It may be getting an error as the previously uploaded file can be overwritten. You could move it out of the way / delete it after processing the upload. Or you could set a flag when you process the upload. Check this flag in takeValues... and if it is set, do NOT call super.

Chuck


On Feb 24, 2007, at 7:32 AM, James Cicenia wrote:

Hello -

I have various file upload pages that work perfectly.... however,

If some hits refresh on their browser after uploading a file it gives them this exception:



[2007-02-24 09:30:17 CST] <WorkerThread14> java.lang.RuntimeException: Could not create output stream. 'outputStream', or 'streamToFilePath' may have evaluated to null. No Upload performed.



Is there a way to trap for this ?


- James Cicenia

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to