The Files.listFiles method can return null if the File object is not a directory.
I know that the error message does not display the path for the file that causes the problem. Is there a chance that in your file system on CentOS there is a soft or hard link that might be somehow not be working correctly with the listFiles method?
I have also seen a question on the Web about listFiles returning null for the temp directory in some cases but I do not know if that applies in your case.
- Tim
[Message sent by forum member 'tjquinn']
http://forums.java.net/jive/thread.jspa?messageID=482041