org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

poi-user | Jatin Puri | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Not enough data (1) to read requested (2) bytes - File succeeds on saving using excel

    poi-user | 1 year ago | Jatin Puri
    org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes
  2. 0

    Not enough data (1) to read requested (2) bytes - File succeeds on saving using excel

    poi-user | 1 year ago | Jatin Puri
    org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes
  3. 0

    Not enough data (1) to read requested (2) bytes - File succeeds on saving using excel

    poi-user | 1 year ago | Jatin Puri
    org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Not enough data (1) to read requested (2) bytes - File succeeds on saving using excel

    poi-user | 1 year ago | Jatin Puri
    org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

    Root Cause Analysis

    1. org.apache.poi.hssf.record.RecordFormatException

      Not enough data (1) to read requested (2) bytes

      at org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition()
    2. POI
      ExtSSTRecord.<init>
      1. org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:226)
      2. org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:243)
      3. org.apache.poi.hssf.record.ExtSSTRecord$InfoSubRecord.<init>(ExtSSTRecord.java:62)
      4. org.apache.poi.hssf.record.ExtSSTRecord.<init>(ExtSSTRecord.java:97)
      4 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    4. POI
      HSSFWorkbook.<init>
      1. org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:84)
      2. org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:334)
      3. org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:308)
      4. org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:274)
      5. org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:478)
      6. org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:344)
      7. org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:401)
      7 frames