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 2008/04/01 08:08:31 UTC

DO NOT REPLY [Bug 44710] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

https://issues.apache.org/bugzilla/show_bug.cgi?id=44710


Lal M.R <mr...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #3 from Lal M.R <mr...@yahoo.com>  2008-03-31 23:08:30 PST ---
Thanks for your comments.

Today I tried with the latest build (ie  poi-source-3.1-alpha1-20080330.zip
30-Mar-2008 05:32 2.0M )

Now the following error is thrown.

WARNING: POIFS is closing the supplied input stream of type
(java.io.BufferedInputStream) which supports mark/reset.  This will be a
problem for the caller if the stream will still be used.  If that is the case
the caller should wrap the input stream to avoid this close logic.  This
warning is only temporary and will not be present in future versions of POI.
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:206)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:124)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:204)
        at TestUserHome.main(TestUserHome.java:29)
Caused by: java.lang.reflect.InvocationTargetException
        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:494)
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:194)
        ... 3 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at
org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:132)
        at
org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:152)
        at
org.apache.poi.hssf.util.HSSFCellRangeAddress.fillFields(HSSFCellRangeAddress.java:80)
        at
org.apache.poi.hssf.util.HSSFCellRangeAddress.<init>(HSSFCellRangeAddress.java:70)
        at org.apache.poi.hssf.record.DVRecord.fillFields(DVRecord.java:207)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.DVRecord.<init>(DVRecord.java:134)
        ... 8 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