poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48206] Another HSSF OOM Problem - Small XLS File
Date Tue, 17 Nov 2009 20:47:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48206

Josh Micich <josh@gildedtree.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Josh Micich <josh@gildedtree.com> 2009-11-17 12:47:18 UTC ---
I experimented a little with the smaller the XLS file from your zip
(name: "Stine Nov. 9  lk.xls", md5sum: bba472f37e3df4a8fb9a83459b54bec6).

It appears that this file is definitely broken.  Excel 2003 and 2007 both
report data loss (several times) while opening this file.  So while it is
probably OK for POI to throw some sort of exception, I agree that
OutOfMemoryError is not the right one.

Having said that, it appears that the latest POI (svn trunk) does *not* throw
OOME.  The line numbers in the stack trace you supplied don't correspond to any
recent version of POI.  This leads me to believe that the bug has been fixed
since whatever version of POI you are running.  I have marked this bug as
'fixed', but please re-open if you can show the OOME on a more recent version
of POI.

For the record, here is the exception I get:
java.lang.RuntimeException: Buffer underrun - requested 2 bytes but 1 was
available
    at
org.apache.poi.poifs.filesystem.DocumentInputStream.checkAvaliable(DocumentInputStream.java:202)
    at
org.apache.poi.poifs.filesystem.DocumentInputStream.readUShort(DocumentInputStream.java:300)
    at
org.apache.poi.poifs.filesystem.DocumentInputStream.readShort(DocumentInputStream.java:220)
    at
org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:234)
    at
org.apache.poi.hssf.record.PrintSetupRecord.<init>(PrintSetupRecord.java:81)
    ... 10 more

-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message