java.io.IOException: Unable to read entire block; 389 bytes read; expected 512 bytes

poi-dev | Eric Hartmann | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problems while creating HSSFWorkbook with an InputStream

    poi-dev | 1 decade ago | Eric Hartmann
    java.io.IOException: Unable to read entire block; 389 bytes read; expected 512 bytes
  2. 0

    Getting error "Unable to read entire header" when created file through apache POI

    Stack Overflow | 2 years ago
    java.io.IOException: Unable to read entire header; 0 bytes read; expected 32 bytes
  3. 0

    Excel file saved by javamail API not readable to apache poi API (Open Source Projects forum at JavaRanch)

    coderanch.com | 1 year ago
    java.io.IOException: Your file contains 79 sectors, but the initial DIFAT array at index 1 referenced block # 98. This isn't allowed and your file is corrupt
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception when open xls files

    Stack Overflow | 2 years ago
    java.io.IOException: block[ 3 ] already removed - does your POIFS have circular or duplicate block references?
  6. 0

    Read XLS / XLSX Files in Java Using Apache POI | ThinkTibits!

    blogspot.com | 11 months ago
    java.io.IOException: Invalid header signature; read 0x4353414E2023233C, expected 0xE11AB1A1E011CFD0

  1. zokni
    POI
    5 times, last 10 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Unable to read entire block; 389 bytes read; expected 512 bytes

    at org.apache.poi.poifs.storage.RawDataBlock.<init>()
  2. POI
    HSSFWorkbook.<init>
    1. org.apache.poi.poifs.storage.RawDataBlock.<init>(RawDataBlock.java:98)
    2. org.apache.poi.poifs.storage.RawDataBlockList.<init>(RawDataBlockList.java:88)
    3. org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:123)
    4. org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:175)
    4 frames