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] New: java.lang.RuntimeException: Buffer underrun - requested 512 bytes but X was available
Date Wed, 08 Apr 2009 00:14:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46987

           Summary: java.lang.RuntimeException: Buffer underrun -
                    requested 512 bytes but X was available
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: regression
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: trejkaz@trypticon.org


I get the following exception loading a workbook:

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)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:277)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:184)

Whereas it is true that document streams should be multiples of 512 bytes,
other parts of POI work around this in order to tolerate files written by
flakier past versions of Excel.

This was not a problem in POI 3.1.

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