https://issues.apache.org/bugzilla/show_bug.cgi?id=47384
Summary: org.apache.poi.hssf.record.RecordFormatException:
Expected to find a ContinueRecord
Product: POI
Version: 3.2-FINAL
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Attached file does not open in poi-3.1-FINAL-20080629.jar
File inputFile = new File("c:\\temp\\in.xls);
String shortInputFileName = inputFile.getName().substring(0,
InputStream xlsInputStream = new FileInputStream(inputFile);
POIFSFileSystem poiFileSystem = new POIFSFileSystem(xlsInputStream);
HSSFWorkbook wb = new HSSFWorkbook(poiFileSystem);
Following is the error thrown
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:186)
at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:328)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:271)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:196)
at
com.xxxxx.converters.XLSToCSVConverter.convert(XLSToCSVConverter.java:35)
at com.xxxxx.converters.XLSToCSVConverter.main(XLSToCSVConverter.java:130)
Caused by: org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord in order to read remaining 242 of 268 chars
at
org.apache.poi.hssf.record.RecordInputStream.readStringCommon(RecordInputStream.java:284)
at
org.apache.poi.hssf.record.RecordInputStream.readCompressedUnicode(RecordInputStream.java:243)
at
org.apache.poi.hssf.record.ExternalNameRecord.<init>(ExternalNameRecord.java:139)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:184)
... 5 more
--
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: [email protected]
For additional commands, e-mail: [email protected]