https://bz.apache.org/bugzilla/show_bug.cgi?id=61045
Bug ID: 61045 Summary: RecordFormatException: Expected to find a ContinueRecord in order to read remaining 1 of 51 chars Product: POI Version: 3.16-dev Hardware: PC Status: NEW Severity: normal Priority: P2 Component: HSSF Assignee: dev@poi.apache.org Reporter: talli...@mitre.org Target Milestone: --- Created attachment 34955 --> https://bz.apache.org/bugzilla/attachment.cgi?id=34955&action=edit triggering doc from govdocs1 In our regression corpus, we have a few handfuls of cases of this stack trace: org.apache.poi.hssf.record.RecordFormatException: Expected to find a ContinueRecord in order to read remaining 1 of 51 chars at org.apache.poi.hssf.record.RecordInputStream.readStringCommon(RecordInputStream.java:404) at org.apache.poi.hssf.record.RecordInputStream.readCompressedUnicode(RecordInputStream.java:363) at org.apache.poi.hssf.record.FormatRecord.<init>(FormatRecord.java:57) at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:84) at org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:345) at org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:307) at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:273) at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.genericProcessEvents(HSSFEventFactory.java:175) at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:136) In the file I examined, it looked like the record length is correct, but that the XLUnicodeString's length is off by one, and there is actually no continue record. Excel is able to open this file without complaint. I'm attaching a triggering file from govdocs1. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org