https://issues.apache.org/bugzilla/show_bug.cgi?id=57342
RatiKanata Pal <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #9 from RatiKanata Pal <[email protected]> --- Created attachment 32356 --> https://issues.apache.org/bugzilla/attachment.cgi?id=32356&action=edit Jars Used HI, Run the test using Jdk 1.8 and latest poi jars. here the code I used package com.rati.Dec; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.streaming.SXSSFSheet; import org.apache.poi.xssf.streaming.SXSSFWorkbook; public class MillionTest1 { @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method stub SXSSFWorkbook workbook = new SXSSFWorkbook(100); workbook.setCompressTempFiles(true); SXSSFSheet sheet = null; Row row = null; Cell cell = null; sheet = (SXSSFSheet) workbook.createSheet("Test"); FileOutputStream fileOut = null; try { System.out.println("Started!"); for (int i = 0; i < 777384; i++) { row = sheet.createRow(i); for (int j = 0; j < 100; j++) { cell = row.createCell(j); cell.setCellValue("Rati : row : "+i +" Col: "+ j); } } fileOut = new FileOutputStream( new File("Z:\\Version11.xlsx")); workbook.write(fileOut); } catch (Exception exception) { exception.printStackTrace(); } finally { workbook.dispose(); try { fileOut.flush(); fileOut.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("Completed!"); } } } Same error Is popping up. I have also attached the screen shots in the attachment section. Please check once. -- 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]
