Summary: | NullPointerException when reading a large excel file | ||
---|---|---|---|
Product: | POI | Reporter: | Elvira Gurevich <elvira_gurevich> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | excel file producing an error |
Description
Elvira Gurevich
2002-08-28 19:46:21 UTC
Created attachment 2870 [details]
excel file producing an error
I ran the latest CVS against the attachment and the following worked fine: HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream("c:/att.xls")); Maybe the input.getBytes that you are calling is not providing the entire set of bytes or try the latest build from the nightly area and let us know if it is fixed or not: http://jakarta.apache.org/builds/jakarta-poi/nightly/ Jason you are right! we were reading the file as bytes, converting them to String and then converting back to bytes - sort of legacy design, since originally we were only dealing with character files. changing code to deal with the original byte array fixed this problem. Thanks! |