commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan King <>
Subject FileItem write method writes file and throws exception
Date Sat, 04 Dec 2010 17:29:50 GMT
Hi all,

I'm using FileItem's write method to write a file to disk. Oddly, the method 
will write the file to disk, but then throw an exception. I'm catching the 
exception and logging it; however, the exception message is "null." Anyone know 
what could be the problem and how to resolve it? Below is the code. Thanks.

if (!fileItem.isFormField()) {
  try {
  } catch (Exception e) {
       logger.error("File upload failed. " + e.getMessage());


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message