Colm McCartan <[EMAIL PROTECTED]> writes:

> 22/11/2001 12:50:29, Bruce Altner <[EMAIL PROTECTED]> wrote:
>
>>Hmmmmm...I was premature in my celebration. I got the 2.2b1 distribution 
>>and built the turbine jar file, installed it, and recompiled everything.
>>Unfortunately I still get zero length files transferred over.
>>
>>Do I need an even later version? Do I need to reinstall the whole tdk 
>>rather than just turbine-2.1.jar?
>
> I'm having similar problems but here is the weird thing - the upload
> service was working fine until we did a big chunk of refactoring -
> now we're getting zero- lenght files written.

Do you refer to refactoring of your application or of Turbine?  Do you
have the patches from Turbine CVS which addressed this issue for
others?

> Someone here remembers seeing something somewhere (is that specific
> enough for everyone?) saying that it is possible to extract the
> FileItem from the parameter parser only once...?

You can only read the ServletRequest's input stream once (its data is
read in off a socket connection -- there's no random access).  I
looked over the DefaultParameterParser implementations in both Turbine
2 and Fulcrum CVS, and they read the request's input stream only once.

> Does this ring a bell for anyone? If so, has this to do with turbine
> or is it a limitation of the servlet spec?

This is related to the implementation of your servlet container.  IMO,
the "single read" behavior is correct (if at times annoying ;).

> We've tried extracting it once and then passing around a reference
> to it but that doesn't seem to work. Asking the extracted file for
> its size gives a sensible answer and these are small files (and
> anyway it worked last week so its not a size limitation problem)

What version is the copy of the Turbine code you're using?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to