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 Tue, 14 Apr 2009 05:18:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46987


Trejkaz <trejkaz@trypticon.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




--- Comment #2 from Trejkaz <trejkaz@trypticon.org>  2009-04-13 22:18:41 PST ---
I can't give you the document because it contains company information, but I
put a breakpoint in RecordFactory to confirm that it is doing this:

record = [SELECTION]
    .pane            = 0x03
    .activecellrow   = 0x0000
    .activecellcol   = 0x0000
    .activecellref   = 0x0000
    .numrefs         = 0x0001
[/SELECTION]

record = [EOF]
[/EOF]


java.lang.RuntimeException: Buffer underrun - requested 512 bytes but 192 was
available
    at
org.apache.poi.poifs.filesystem.DocumentInputStream.checkAvaliable(DocumentInputStream.java:202)
    at
org.apache.poi.poifs.filesystem.DocumentInputStream.readFully(DocumentInputStream.java:224)
    at
org.apache.poi.hssf.record.RecordInputStream.readFully(RecordInputStream.java:251)
    at
org.apache.poi.hssf.record.RecordInputStream.readFully(RecordInputStream.java:246)
    at
org.apache.poi.hssf.record.RecordInputStream.readRemainder(RecordInputStream.java:341)
    at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:73)
    at
org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:251)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:373)


So the old version was (correctly?) stopping at EOF, and the new version for
whatever reason keeps reading despite hitting the EOF marker.

-- 
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