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/03/26 00:21:50 UTC

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

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

           Summary: org.apache.poi.hssf.record.RecordFormatException: Unable
                    to construct record instance
           Product: POI
           Version: unspecified
          Platform: Sun
        OS/Version: SunOS
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: durgadeep@gmail.com


We have the latest Apache POI ( 3.0.2 )


org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:199)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:117)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:207)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:148)
        at
org.apache.poi.hssf.extractor.ExcelExtractor.<init>(ExcelExtractor.java:48)
        at
com.sun.comms.iss.indexapi.converter.MSExcelConverter.convertToText(MSExcelConverter.java:103)
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:187)
        ... 17 more
Caused by: java.lang.IllegalArgumentException: Illegal length
        at
org.apache.poi.hssf.record.RecordInputStream.readCompressedUnicode(RecordInputStream.java:270)
        at
org.apache.poi.hssf.record.FileSharingRecord.fillFields(FileSharingRecord.java:62)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at
org.apache.poi.hssf.record.FileSharingRecord.<init>(FileSharingRecord.java:48)
        ... 22 more
.. Exception... Unable to read entire header; 0 bytes read; expected 512 bytes


-- 
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 44674] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44674


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #3 from Nick Burch <ni...@torchbox.com>  2008-03-27 03:54:33 PST ---
Those messages indicate your FileSharingRecords aren't quite what POI was
expecting, but can be worked around

If they bug you, tell POILogFactory to use the NullLogger for that class, and
they'll go away


-- 
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 44674] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44674


Steven Rodeo <du...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #2 from Steven Rodeo <du...@gmail.com>  2008-03-26 17:26:17 PST ---

Thanks for the quick response. I got the very latest POI and it fixes the bug. 
But I keep getting the following on the console

WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b
WARN. Unread -1 bytes of record 0x5b

Thanks Much


-- 
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 44674] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44674


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Nick Burch <ni...@torchbox.com>  2008-03-26 03:27:52 PST ---
Please try with a svn checkout, or a nightly build
<http://encore.torchbox.com/poi-svn-build/> - there have been fixes to the
filesharing record since 3.0.2

(Please re-open the bug if you still have a problem with a recent nightly build
/ svn checkout, and also upload the problem 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