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

Josh Micich <[email protected]> changed:

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

--- Comment #1 from Josh Micich <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to