You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2010/11/19 08:56:05 UTC
DO NOT REPLY [Bug 50298] New: Exception in HSSFWorkbook.write()
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: dev@poi.apache.org
ReportedBy: yokoi@bbreak.co.jp
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
OS/Version| |All
--- Comment #2 from Yegor Kozlov <ye...@dinom.ru> 2010-11-19 08:36:39 EST ---
Please post the complete Java code to reproduce the problem. If your code
requires an .xls template then upload it too.
Yegor
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
hier.sur.apres.demain@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #6 from hier.sur.apres.demain@gmail.com 2011-04-13 23:17:47 EDT ---
This bug does not reproduce in version 3.6.
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
--- Comment #3 from akira yokoi <yo...@bbreak.co.jp> 2010-11-19 10:00:41 EST ---
Created an attachment (id=26319)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26319)
error java code
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
--- Comment #4 from akira yokoi <yo...@bbreak.co.jp> 2010-11-19 10:01:00 EST ---
Created an attachment (id=26320)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26320)
error xls file
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Dominik Stadler <do...@gmx.at> ---
We finally found the culprit here in the way the setSheetOrder() was handled
internally. It missed to update some internal structures thus confusing the
calculation of the serialization-sizes. Should be fixed in 3.10 in r1516313.
--
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
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
hier.sur.apres.demain@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
--- Comment #5 from akira yokoi <yo...@bbreak.co.jp> 2010-11-19 10:01:58 EST ---
The error java code and xls file attached.
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 50298] Exception in HSSFWorkbook.write()
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50298
--- Comment #1 from akira yokoi <yo...@bbreak.co.jp> 2010-11-19 03:02:10 EST ---
Created an attachment (id=26315)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26315)
normally output file
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org