You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Karim Ratib <kr...@open-craft.com> on 2009/04/08 19:33:00 UTC

Re: Google Spreadsheets-exported XLS file generates org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Here is the output of e.printStackTrace()

===============
org.apache.poi.hssf.record.RecordFormatException: Unable to construct
record instance
	at org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:226)
	at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:352)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:276)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:201)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:317)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:298)
	at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:59)
	at TestPOI.main(TestPOI.java:12)
Caused by: org.apache.poi.hssf.record.RecordFormatException: Not
enough data (0) to read requested (1) bytes
	at org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:185)
	at org.apache.poi.hssf.record.RecordInputStream.readByte(RecordInputStream.java:193)
	at org.apache.poi.hssf.record.RecordInputStream.readUByte(RecordInputStream.java:223)
	at org.apache.poi.util.StringUtil.readCompressedUnicode(StringUtil.java:121)
	at org.apache.poi.hssf.record.WriteAccessRecord.<init>(WriteAccessRecord.java:62)
	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.createSingleRecord(RecordFactory.java:224)
	... 7 more
===============

On Wed, Apr 8, 2009 at 2:33 AM, Nick Burch <ni...@torchbox.com> wrote:
> On Tue, 7 Apr 2009, Karim Ratib wrote:
>>
>> Using POI-3.5-beta5, I encounter the following exception when trying
>> to open an XLS file exported by Google Spreadsheets:
>>
>> org.apache.poi.hssf.record.RecordFormatException: Unable to construct
>> record instance
>
> Can you send along the full stacktrace, so we can see which record it is
> we're having issues with?
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Google Spreadsheets-exported XLS file generates org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Posted by Karim Ratib <kr...@open-craft.com>.
Thanks for the quick turnaround!

On Wed, Apr 8, 2009 at 2:20 PM, Josh Micich <jo...@gmail.com> wrote:
> Thanks for the details.  The following bugzilla has been created and
> resolved:https://issues.apache.org/bugzilla/show_bug.cgi?id=47001
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Google Spreadsheets-exported XLS file generates org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Posted by Josh Micich <jo...@gmail.com>.
Thanks for the details.  The following bugzilla has been created and
resolved:https://issues.apache.org/bugzilla/show_bug.cgi?id=47001