poi-3.1-FINAL-20080629 读取EXCEL报错
读取一个Excel文件,原文件读入的时候报错,可是将原文件另存为后,再读入不报错!
有没有兄弟遇到这个错误啊?怎么解决呢?
部分代码:
POIFSFileSystem fs = new POIFSFileSystem(fis);
//此处报错 Unexpected missing row when some rows already present
HSSFWorkbook wb = new HSSFWorkbook(fs);
java.lang.RuntimeException: Unexpected missing row when some rows already present
at org.apache.poi.hssf.usermodel.HSSFSheet.setPropertiesFromSheet(HSSFSheet.java:169)
at org.apache.poi.hssf.usermodel.HSSFSheet.<init>(HSSFSheet.java:123)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:265)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:169)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:151)