It may be a longshot, but as its sporadic, make sure the file is
not still open in javaMail when you start reading it with poi.

Depending on the File-system, that can make a difference.

If possible, I try to have the sending-system rename the File
& the receiving-system will first "see" it after the rename.

Rename is a fantastic semaphore.

All the best,
DaveLaw

On 19/07/2013 10:50, Nick Burch wrote:
On Thu, 18 Jul 2013, mak wrote:
[2013-07-18 23:38:32,409] ERROR [AvailabilityDirectoryPoller]: Exception in
I/O Reading file
java.io.IOException: Your file contains 79 sectors, but the initial DIFAT array at index 1 referenced block # 98. This isn't allowed and your file is
corrupt

Try reading it with NPOIFSFileSystem rather than POIFSFileSystem, the former is a bit more tolerant of some odd setups than the latter. Otherwise, make sure that the checksum (eg md5/sha1) of the file is correct after the transfer, to ensure that your wrapping / unwrapping didn't corrupt any of the file

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to