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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via poi-user by Jatin Puri, 1 year ago
via poi-user by Jatin Puri, 1 year ago
via poi-user by Jatin Puri, 1 year ago
via poi-user by Jatin Puri, 1 year ago
via Apache Bugzilla by lejingw, 6 months ago
via Apache Bugzilla by bearbalu, 1 year ago
org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes
at org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:226)
at org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:243)
at org.apache.poi.hssf.record.ExtSSTRecord$InfoSubRecord.(ExtSSTRecord.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:84)
at org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:334)
at org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:308)
at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:274)
at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:478)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:344)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.