This is definitely not a bug, but an incorrect understanding of file handling. As Chris points out, you need to make sure that the file polling process does not try to pick up a file before it has been completely written.
A common approach is to write the file using a particular extension, for example myfile.tmp. When the writing is complete, then rename it to something like myfile.dat.
Configure the file poller to pick up *.dat files and the picking up a file prematurely problem will disappear.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods