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 2014/11/10 04:36:21 UTC

[Bug 57194] New: org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

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

            Bug ID: 57194
           Summary: org.apache.poi.hssf.record.RecordFormatException: Not
                    enough data (1) to read requested (2) bytes
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: bearbalu@hotmail.com

I have an (xls) file with this issue. Unfortunately, it is not a public
document so I can't post it. Happy to email it to someone who can look at it.
If I open it using my Excel 10 and just re-save it, the issue goes away, so I
can't edit out the confidential info and email it.

org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read
requested (2) bytes
    at
org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:216)
    at
org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:233)
    at
org.apache.poi.hssf.record.cont.ContinuableRecordInput.readShort(ContinuableRecordInput.java:70)
    at
org.apache.poi.hssf.record.common.UnicodeString$ExtRst.<init>(UnicodeString.java:160)
    at
org.apache.poi.hssf.record.common.UnicodeString.<init>(UnicodeString.java:437)
    at
org.apache.poi.hssf.record.SSTDeserializer.manufactureStrings(SSTDeserializer.java:57)
    at org.apache.poi.hssf.record.SSTRecord.<init>(SSTRecord.java:247)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at
org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:87)
    at
org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:338)
    at
org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:285)
    at
org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:251)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:480)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:301)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:264)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:199)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:342)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:323)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:76)

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


[Bug 57194] org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

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

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Without the problematic records, we're not going to be able to do very much
here. If you can't find a file you can share showing the problem, you'll
probably need to solve this one yourself...

As a start, try comparing the SST records from before and after saving in a new
Excel, and see if you can spot what Excel does to fix things up?

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


[Bug 57194] org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

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

--- Comment #3 from bearbalu <be...@hotmail.com> ---
Hello Nick,

As per my previous email, let me know if I can e-mail you a private copy since
this is not a public file - if so, please send me an e-mail. 

Regards
bearbalu

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


[Bug 57194] org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

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

--- Comment #4 from Nick Burch <ap...@gagravarr.org> ---
In order to be sure we have fixed the bug, and that it remains fixed into the
future, we need a public file that we can use in a unit test, sorry

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


[Bug 57194] org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read requested (2) bytes

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

--- Comment #2 from bearbalu <be...@hotmail.com> ---
Hello Nick,


Thanks for your prompt feedback. Can I email it you? 
If so, please send a private note where I can email this to.

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