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 2012/05/03 17:31:50 UTC

[Bug 47251] LeftoverDataException: Initialisation of record 0xE2

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

Matt Rogghe <mr...@blazent.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrogghe@blazent.com

--- Comment #20 from Matt Rogghe <mr...@blazent.com> ---
I am seeing the same or similar problem.  Using the 3.8 release (also tested on
beta 5). Error seen:

org.apache.poi.hssf.record.RecordInputStream$LeftoverDataException:
Initialisation of record 0x10 left 8 bytes remaining still to be read.
        at
org.apache.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:156)
        at org.apache.poi.hssf.dev.BiffViewer.createRecords(BiffViewer.java:70)
        at org.apache.poi.hssf.dev.BiffViewer.main(BiffViewer.java:418)
Discarding 8 bytes and continuing

Debug mode in Eclipse running BiffViewer yields the following offending record
with surrounding records.  This was run with the --biffhex option.  At the
point this is about to throw the exception, the values of pertinent variables:
_currentDataLength: 16
_currentDataOffset: 8
_currentSid: 16

Offset=0x000007B1(1969) recno=65 sid=0x000F size=0x0002(2)
00000000 | 0F 00 02 00 01 00                               | ......          
Offset=0x000007B1(1969) recno=65 sid=0x000F size=0x0002(2)
[REFMODE]
    .mode           = 1
[/REFMODE]

Offset=0x000007B7(1975) recno=66 sid=0x0011 size=0x0002(2)
00000000 | 11 00 02 00 00 00                               | ......          
Offset=0x000007B7(1975) recno=66 sid=0x0011 size=0x0002(2)
[ITERATION]
    .flags      = 0x0000
[/ITERATION]

[DELTA]
    .maxchange = 4.148614224924376E-271
[/DELTA]

Offset=0x000007BD(1981) recno=67 sid=0x0010 size=0x0010(16)
00000000 | 10 00 10 00 00 06 10 00 BB 0D CC 07 3F 50 62 4D | ............?PbM
00000010 | D2 F1 A9 FC                                     | ....            
Offset=0x000007D1(2001) recno=68 sid=0x005F size=0x0002(2)
00000000 | 5F 00 02 00 01 00                               | _.....          
Offset=0x000007BD(1981) recno=67 sid=0x0010 size=0x0010(16)
Offset=0x000007D1(2001) recno=68 sid=0x005F size=0x0002(2)
[SAVERECALC]
    .recalc         = true
[/SAVERECALC]

Offset=0x000007D7(2007) recno=69 sid=0x002A size=0x0002(2)
00000000 | 2A 00 02 00 00 00                               | *.....          
Offset=0x000007D7(2007) recno=69 sid=0x002A size=0x0002(2)
[PRINTHEADERS]
    .printheaders   = false
[/PRINTHEADERS]

-- 
You are receiving this mail because:
You are the assignee for the bug.