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 46987] java.lang.RuntimeException: Buffer underrun - requested 512 bytes but X was available
Date Wed, 08 Apr 2009 16:03:20 GMT

Josh Micich <josh@gildedtree.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO

--- Comment #1 from Josh Micich <josh@gildedtree.com>  2009-04-08 09:03:17 PST ---
DocumentInputStream can contain any length of data.  If you put a breakpoint at 
DocumentInputStream.<init>(DocumentEntry.java:73) and run the unit tests, you
will see that very few of the POI test case examples have an exact multiple of
512 bytes.

The stack-trace indicates that at 196 bytes before the ends of stream, an
unknown record sid was read, followed by an apparent size of 512.  Excel
document streams should end with EOFRecord.  One possibility is that the
originating application has written EOFRecord correctly, but padded with
(non-zero) garbage.  Alternatively there could be a mis-alignment problem a
little bit before this location.

Could you please attach the offending spreadsheet.  This will help diagnose the
problem better.

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

View raw message