https://bz.apache.org/bugzilla/show_bug.cgi?id=62588
Bug ID: 62588
Summary: Null pointer exception while debugging but same code
work and provide me correct output,But when i ran it
normal way
Product: POI
Version: 3.17-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: SXSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 36061
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36061&action=edit
Attached the exception for the above code mentioned in the description.
Null pointer exception is thrown ,When i am trying to read data from external
source Excel.
here is my code to read data from excel (.xlsx)
public class ExcelReader {
public static void main(String[] args) throws Exception {
String path ="C:\\Users\\hudgipr\\Desktop\\ConfigData.xlsx";
FileInputStream fis = new FileInputStream(path);
Workbook wb = WorkbookFactory.create(fis);
Sheet sh = wb.getSheet("Flipkart");
Row rw = sh.getRow(0);
Cell cl =rw.getCell(0);
System.out.println(cl.getStringCellValue());
}
}
problem is when i run it normal way it works fine and provide me correct output
without throwing any exception,but when i debug same code i get an exception on
the line code
Workbook wb = WorkbookFactory.create(fis);
Please find attachment for exception while debugging.
Please help me i am blocked on this from 3 days and did not found any
solution,not sure whats the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]