DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15178>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15178

OutOfMemoryError

           Summary: OutOfMemoryError
           Product: POI
           Version: 1.5.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello!

I can create a sheet with 10000 rows.
When I try to create a sheet with 30000 rows I get an OutOfMemoryError.

Greetings from Germany

      Holger

P.S. I tried the VM argument "-Xmx128m" (J2SE 1.4.1) without any effect.

    public static void main(String[] args) throws IOException {
        HSSFWorkbook workbook = new HSSFWorkbook();
        HSSFSheet    sheet = workbook.createSheet("Test");
        for (short i = 1; i < 30000; i++) {
            HSSFRow row = sheet.createRow(i);
            for (short j = 0; j < 50; j++) {
                row.createCell(j).setCellValue("content");
            }
        }
        FileOutputStream fos = new FileOutputStream("c:/temp/linetest.xls");
        workbook.write(fos);
    }

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to