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 2013/06/26 22:15:33 UTC
[Bug 53515] SXSSFWorkbook.write() fails when called more than once
https://issues.apache.org/bugzilla/show_bug.cgi?id=53515
--- Comment #6 from Jonathan Drapeau <dr...@gmail.com> ---
I've come up with a workaround for my problem of writing more than once in a
XssfWorkbook.
Using a FileInputStream on the second pass to open the Workbook will make it
work. If that points to a problem in the JVM itself (Oracle's v7), I'm puzzled
to see that using a different constructor will avoir a JVM crash.
Change my attached case opening code this :
FileInputStream input = null;
try {
File out = new File("Test.xlsx");
if (out.exists()) {
try {
input = new FileInputStream(out);
wb = new SXSSFWorkbook((XSSFWorkbook)
WorkbookFactory.create(input));
} catch (Exception e) {
System.err.println("ERROR: didn't create workbook : " +
e.getMessage());
}
} else {
wb = new SXSSFWorkbook(10);
}
--
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