Bug 61155 - Exception "java.lang.RuntimeException: Failed to find end of row/cell records" when opening a XLS file
Summary: Exception "java.lang.RuntimeException: Failed to find end of row/cell records...
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.16-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-05 14:16 UTC by Matafagafo
Modified: 2017-06-16 18:36 UTC (History)
0 users



Attachments
XLS file witch generates exception (5.00 KB, application/vnd.ms-excel)
2017-06-05 14:16 UTC, Matafagafo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matafagafo 2017-06-05 14:16:33 UTC
Created attachment 35032 [details]
XLS file witch generates exception

Opening the attached XLS file generates the following exception


java.lang.RuntimeException: Failed to find end of row/cell records
	at org.apache.poi.hssf.model.RowBlocksReader.<init>(RowBlocksReader.java:64) ~[poi-3.16.jar:3.16]
	at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:216) ~[poi-3.16.jar:3.16]
	at org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:157) ~[poi-3.16.jar:3.16]
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:359) ~[poi-3.16.jar:3.16]
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:99) ~[poi-ooxml-3.16.jar:3.16]
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:182) ~[poi-ooxml-3.16.jar:3.16]
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:144) ~[poi-ooxml-3.16.jar:3.16]


This file can be opened without problem in Excel 2013 or OpenOffice Calc 4.1.3.
If either Excel or Calc saves the file(without any updates), then POI can read it without exceptions.