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 2009/04/08 18:03:20 UTC
DO NOT REPLY [Bug 46987] java.lang.RuntimeException: Buffer underrun
- requested 512 bytes but X was available
https://issues.apache.org/bugzilla/show_bug.cgi?id=46987
Josh Micich <jo...@gildedtree.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Josh Micich <jo...@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