You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2005/03/18 03:38:20 UTC

DO NOT REPLY [Bug 34067] New: - OutOfMemoryError w/ Certain excel files

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=34067

           Summary: OutOfMemoryError w/ Certain excel files
           Product: POI
           Version: 2.5
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: bobwhite@writeme.com


I have several Excel files that throw OutOfMemoryError.  Error is reliably
repeatable.  They also seem to take an inordinate amount of time to load before
failing.  This does not happen with smaller size files, hence, I suspect it is a
file format problem.  I do not know what version of Excel is used to create
these files (we are emailed such a data file every day).  I will attempt to
attach an example of a failing file.  Failure occurs in HSSFWorkbook
constructor, called as shown below.

  public XlsHssfWorkbook( final File f ) throws IOException
  {
    boolean bComplete = false;
    _fis = new FileInputStream( f );
    try
    {
      _fs = new POIFSFileSystem( _fis );
      _workbook = new HSSFWorkbook( _fs );
      bComplete = true;
    }
    finally
    {
      if ( !bComplete )
        close();
    }
  }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/