You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/06/17 17:20:44 UTC
DO NOT REPLY [Bug 47384] New:
org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord
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: dev@poi.apache.org
ReportedBy: vladimir@vilinski.de
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47384]
org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47384
Josh Micich <jo...@gildedtree.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Josh Micich <jo...@gildedtree.com> 2009-06-18 14:16:21 PST ---
Thanks for the sample file.
Fixed in svn r786267 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=786267 )
junit added
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47384]
org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47384
Vladimir Vilinski <vl...@vilinski.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Severity|blocker |normal
--- Comment #3 from Vladimir Vilinski <vl...@vilinski.de> 2009-06-18 12:19:18 PST ---
Attached forgotten file.
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47384]
org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47384
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 2009-06-18 11:58:12 PST ---
There is no file, you seem to forgot to attach it.
Also, can you check the problem file against the latest trunk? Many bugs have
been fixed since the release of POI-3.1.
Daily builds can be downloaded from http://encore.torchbox.com/poi-svn-build/
Yegor
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47384]
org.apache.poi.hssf.record.RecordFormatException: Expected to find a
ContinueRecord
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47384
--- Comment #2 from Vladimir Vilinski <vl...@vilinski.de> 2009-06-18 12:17:30 PST ---
Created an attachment (id=23830)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23830)
Forgotten wrong file
I have deleted the entire content of XLS file but can not read it anway.
We receive hundreds of such files daily from our partners in Czech Republic.
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org