Hello, I have a web site where users can upload CSV and XLSX files and I use Apache-POI to parse XLSX files. However, I discovered something unusual. When I convert a CSV file to XLSX on Excel 2013 I get a NPE while initializing XSSFReader:
java.lang.NullPointerException at org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:625) at org.apache.poi.xssf.eventusermodel.XSSFReader.<init>(XSSFReader.java:67) file.exists() returns true. I asked someone to convert the same file for me with Excel 2011 and the error disappears. I've tried this with poi-3.11 and 3.9 and respective dependencies with the same result. Sample files are attached. Thanks, João Miguel Penetra
test_excel_2011.xlsx
Description: MS-Excel 2007 spreadsheet
test_excel_2013.xlsx
Description: MS-Excel 2007 spreadsheet
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
