poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53515] SXSSFWorkbook.write() fails when called more than once
Date Wed, 26 Jun 2013 20:15:33 GMT

--- 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

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)
          } catch (Exception e) {
            System.err.println("ERROR: didn't create workbook : " +

        } 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

View raw message