Bug 57952 - HSSF org.apache.poi.hssf.record.RecordFormatException: Unhandled Continue Record followining class org.apache.poi.hssf.record.TabIdRecord
Summary: HSSF org.apache.poi.hssf.record.RecordFormatException: Unhandled Continue Rec...
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.12-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 03:21 UTC by hzl7652
Modified: 2020-11-18 02:45 UTC (History)
0 users



Attachments
no describe (41.50 KB, application/vnd.ms-excel)
2015-05-27 03:21 UTC, hzl7652
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hzl7652 2015-05-27 03:21:15 UTC
Created attachment 32758 [details]
no describe

when I use  WorkbookFactory.create(excelFile) method create WorkBook then throw this exception,but the file in office can open no error.
when I open this file , not any change , then save as another file .then WorkbookFactory.create(excelFile)  create WorkBook success.



org.apache.poi.hssf.record.RecordFormatException: Unhandled Continue Record followining class org.apache.poi.hssf.record.TabIdRecord
	at org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:382)
	at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:276)
	at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:480)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:326)
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:115)
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:206)
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:188)
Comment 1 itwanghua 2020-11-18 02:45:44 UTC
这个到底啥问题,用户上传的excel文件可以正常打开,我将Excel文件读取到流后,使用HSSF的构造方法创建报这个错!