DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12136

NullPointerException when reading a large excel file

           Summary: NullPointerException when reading a large excel file
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running code from jakarta-poi-1.7.0-dev-bin.zip,
I get the following stack trace when reading a file of about 130 rows and 4 
columns( not really that big!):
java.lang.NullPointerException
        at org.apache.poi.hssf.usermodel.HSSFSheet.setPropertiesFromSheet(HSSFSh
eet.java:174)
        at org.apache.poi.hssf.usermodel.HSSFSheet.<init>(HSSFSheet.java:136)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
64)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
90)
        at com.ibi.preparsers.XDExcelpreParser.transform(XDExcelpreParser.java:1
07)
        at com.ibi.edaqm.XDWorker.parseAndValidate(XDWorker.java:1202)
        at com.ibi.edaqm.XDWorker.parseAndValidate(XDWorker.java:1147)
        at com.ibi.edaqm.XDFileWorker.run(XDFileWorker.java:208)
        at java.lang.Thread.run(Thread.java:484)

This does not happen when the file has 1 row less.
The call to HSSFWorkbook is as following:
        HSSFWorkbook workbook = new HSSFWorkbook(new ByteArrayInputStream
(input.getBytes()));
where the file was initially read into a String input.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to