poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56490] When trying to open xlsx file exported from a tool, null pointer exception
Date Mon, 05 May 2014 17:02:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56490

--- Comment #2 from sam <baddamsravanthi@gmail.com> ---
Exception in thread "main" java.lang.NullPointerException
    at
org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:284)
    at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:159)
    at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:221)
    at CompareData.Compare_Data.read_file(Compare_Data.java:68)
    at CompareData.Compare_Data.main(Compare_Data.java:50)

Line 67-69:
 FileInputStream fileIn2 = new FileInputStream(fn);
 XSSFWorkbook filename2 = new XSSFWorkbook(fileIn2);
 XSSFSheet sheet1 = filename2.getSheetAt(0);

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message