commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tahir Akhtar <ta...@spectrum-tech.com>
Subject Re: File Upload Data Corruption Problem
Date Wed, 22 Aug 2007 10:08:47 GMT
Do the files that are corrupted ends up same at each upload or there is 
some randomness in that too?
Could it be something outside the file upload component, like disk 
problem or another process corrupting the file after it has been written 
on the server?

F. Andy Seidl wrote:
> Hi All,
>
> I have been struggling for several days trying to track down the root cause
> of a sporadic file corruption problem using File Upload.  I'm really stumped
> at this point and welcome any suggestions as to avenues of debugging
> pursuit.
>
> Here's overview of the problem:
>
> I have seven Linux (CentOS) servers all running the same web application--a
> set of Java servlets using Resin as a servlet runner under Apache.  All
> seven servers were configured using the same script that installs jars,
> config files, etc.
>
> On three of the servers, File Upload works reliably.  On four of the
> servers, File Upload often (but not always) leaves me with a corrupted file.
>
> Corrupted files are always the correct length but contain a relatively small
> percentage of scrambled bytes.  I looked for obvious patterns like newlines
> being altered or high-bit bytes being converted to or from UTF-8, but there
> is no obvious (to me, anyway) pattern in the failure.
>
> I have also tested with IE, Firefox, and Safari on both Windows and MacOS.
> The issue appears to be independent of client browser and OS.
>
> Looking at Java system properties, I notice that while the classpath and
> bootclasspath have the same jars lists on all servers, they are not listed
> in the same order (probably listed in directory order as the paths are
> constructed by a script that inspects lib directories.)
>
> Is anyone aware of classpath order dependencies that could break File
> Upload?
>
> Can anyone offer any suggestions about what *might* be breaking File Upload?
> Or what other questions I should be asking?  At the moment, I'm feeling
> rather stumped.
>
> Thanks,
>   -- fas
>
> ------------------------------------
> MyST Technology Partners, Inc.
> F. Andy Seidl
> President
> faseidl@myst-technology.com
> 1717 S. University Ave
> Ann Arbor, MI 48104
> tel: 734.717.8360
> Skype ID:aseidl
> ------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message