https://issues.apache.org/bugzilla/show_bug.cgi?id=50298

           Summary: Exception in HSSFWorkbook.write()
           Product: POI
           Version: 3.7
          Platform: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


version:poi-3.7-20101029.jar

I made the book with five sheets.
The following error goes out when the first sheet remove and output. 

// remove first sheet
workbook.removeSheetAt( 0);

It is normally output if it doesn't remove sheet. (attached file). 


Exception in thread "main" org.bbreak.excella.core.exception.ExportException:
java.lang.IllegalArgumentException: calculated end index (15392) is out of
allowable range (15388..15390)
    at
org.bbreak.excella.reports.exporter.XLSExporter.output(XLSExporter.java:77)
    at
org.bbreak.excella.reports.exporter.ExcelExporter.output(ExcelExporter.java:79)
    at
org.bbreak.excella.reports.exporter.ReportBookExporter.export(ReportBookExporter.java:96)
    at
org.bbreak.excella.reports.processor.ReportProcessor.processBook(ReportProcessor.java:215)
    at
org.bbreak.excella.reports.processor.ReportProcessor.process(ReportProcessor.java:110)
    at
org.bbreak.excella.reports.samples.InvoiceReporter.main(InvoiceReporter.java:132)
Caused by: java.lang.IllegalArgumentException: calculated end index (15392) is
out of allowable range (15388..15390)
    at
org.apache.poi.util.LittleEndianByteArrayOutputStream.<init>(LittleEndianByteArrayOutputStream.java:41)
    at
org.apache.poi.hssf.record.StandardRecord.serialize(StandardRecord.java:38)
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook$SheetRecordCollector.serialize(HSSFWorkbook.java:1209)
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:1258)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1158)
    at org.bbreak.excella.core.util.PoiUtil.writeBook(PoiUtil.java:355)
    at
org.bbreak.excella.reports.exporter.XLSExporter.output(XLSExporter.java:75)
    ... 5 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]

Reply via email to