[prev in list] [next in list] [prev in thread] [next in thread]
List: poi-dev
Subject: [Bug 53515] SXSSFWorkbook.write() fails when called more than once
From: bugzilla () apache ! org
Date: 2013-06-26 20:15:33
Message-ID: bug-53515-47293-9FrvTQiBrh () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=53515
--- Comment #6 from Jonathan Drapeau <dranon@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic