https://issues.apache.org/bugzilla/show_bug.cgi?id=48085

           Summary: "OutOfMemoryError: Java heap space" while parsing
                    defect XLS file
           Product: POI
           Version: 3.5-FINAL
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24444)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24444)
POI throws OutOfMemoryError while parsing this short file

An OutOfMemoryError is thrown while parsing a very short (1024 bytes long),
defect XLS file with
WorkbookFactory.create(inputStream);
(see attached file)

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at
org.apache.poi.poifs.storage.BlockAllocationTableReader.<init>(BlockAllocationTableReader.java:82)
    at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:164)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:316)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:297)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:60)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]

Reply via email to