java.io.IOException: Unable to read entire header; 0 bytes read; expected 512 bytes
02-03 10:54:07.331 15649 17322 W System.err at org.apache.poi.poifs.storage.HeaderBlock.alertShortRead(HeaderBlock.java:226)
02-03 10:54:07.331 15649 17322 W System.err at org.apache.poi.poifs.storage.HeaderBlock.readFirst512(HeaderBlock.java:207)
02-03 10:54:07.331 15649 17322 W System.err at org.apache.poi.poifs.storage.HeaderBlock.<init>(HeaderBlock.java:104)
02-03 10:54:07.331 15649 17322 W System.err at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:138)
02-03 10:54:07.331 15649 17322 W System.err at com.myapp.getitem.RWxlsThread.test(RWxlsThread.java:140)
02-03 10:54:07.331 15649 17322 W System.err at com.myapp.getitem.RWxlsThread.run(RWxlsThread.java:41)
问题原因为xls文件大小为0k,
FileOutputStream文件覆盖所致,
FileInputStream文件与FileOutputStream分开使用即使用两个文件。