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/11/11 21:03:20 UTC

DO NOT REPLY [Bug 48180] New: Error reading Excel document that contains charts

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

           Summary: Error reading Excel document that contains charts
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
        AssignedTo: dev@poi.apache.org
        ReportedBy: jason.mckim@spiderstrategies.com


Whenever I attempt to read the attached document (via
Workbook.create(FileInputStream)) I received the exception below:
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
    at
org.apache.poi.hssf.record.RecordFactory$ReflectionRecordCreator.create(RecordFactory.java:71)
    at
org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:269)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:409)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:277)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:318)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:299)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:60)
Caused by: org.apache.poi.hssf.record.RecordFormatException: Not enough data
(0) to read requested (6) bytes
    at
org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:185)
    at
org.apache.poi.hssf.record.RecordInputStream.readFully(RecordInputStream.java:250)
    at
org.apache.poi.hssf.record.RecordInputStream.readFully(RecordInputStream.java:246)
    at
org.apache.poi.hssf.record.chart.ChartEndBlockRecord.<init>(ChartEndBlockRecord.java:44)
    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$ReflectionRecordCreator.create(RecordFactory.java:63)
    ... 40 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 48180] Error reading Excel document that contains charts

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

Matthew Sgarlata <ma...@spiderstrategies.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matt.sgarlata@spiderstrateg
                   |                            |ies.com

-- 
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 48180] Error reading Excel document that contains charts

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

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

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

--- Comment #2 from Nick Burch <ni...@torchbox.com> 2009-11-25 04:12:11 UTC ---
Some of your chart records were shorter than they are supposed to be, I wonder
if the file comes from something other than excel?

I've made POI more tolerant of the appropriate records missing some of their
data, and POI can now open your file without error. Fix in r884065.

-- 
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 48180] Error reading Excel document that contains charts

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

--- Comment #1 from jason.mckim@spiderstrategies.com 2009-11-11 12:03:56 UTC ---
Created an attachment (id=24519)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24519)
Excel sheet with simple chart

-- 
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 48180] Error reading Excel document that contains charts

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

--- Comment #3 from Matthew Sgarlata <ma...@spiderstrategies.com> 2009-11-25 05:35:59 UTC ---
The file was created in Office 2008 for Mac

-- 
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