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/10/31 18:06:13 UTC

DO NOT REPLY [Bug 46137] New: Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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

           Summary: Failed to create an HSSFWorkbook due to "Unhandled
                    Continue Record" after an EOFRecord
           Product: POI
           Version: 3.2-dev
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
        AssignedTo: dev@poi.apache.org
        ReportedBy: shijiewang@agiliance.com


Created an attachment (id=22816)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22816)
A test Excel file that cannot be loaded due to this bug

Sometimes, Excel generates a Continue record after an EOF record for some
unknown reasons. It should be considered as a bug. Excel itself, Excel Viewer,
and Ruby all can handle it without any incident. However, the POI package fails
to handle it.

Based on a Google search on "Unhandled Continue Record", this issue was
reported as early as 2005. See
http://www.mail-archive.com/poi-dev@jakarta.apache.org/msg10360.html. However,
it is not fixed in all the versions we tested, namely, 3.0 rc4, 3.1 FINAL, 3.2
FINAL, and 3.5.1 beta.

The fix seems pretty simple. If the following lines are added to the method
createRecords() in org.apache.poi.hssf.record.RecordFactory, the problem goes
away with those "offending" Excel files.

        } else if (lastRecord instanceof EOFRecord) {
            // System.err.println("Warning: Unexpected Continue Record after an
End of File record!");
            records.add(record);


-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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

Merav E. <me...@precise.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |merav.eshet@precise.com

--- Comment #8 from Merav E. <me...@precise.com> 2010-01-14 04:12:46 UTC ---
Does this fix exist for version 3.2 too?
If yes, what is the link to download it?
Otherwise, how can we download the source code of the 3.2 version? (I found
code only for new versions)
Thanks.

-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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





--- Comment #5 from Joern Muehlencord <jo...@muehlencord.de>  2009-05-05 02:18:18 PST ---
Created an attachment (id=23611)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23611)
File to reproduce the error with Poi 3.2 fianl and 3.5 beta 5

-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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


Yegor Kozlov <ye...@dinom.ru> changed:

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


--- Comment #7 from Yegor Kozlov <ye...@dinom.ru> 2009-08-14 12:53:42 PDT ---
Both attached files can be read by the latest build of
trunk without any problems. 

Daily builds can be downloaded from http://encore.torchbox.com/poi-svn-build/

Yegor

-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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


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

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




--- Comment #1 from Nick Burch <ni...@torchbox.com>  2008-11-10 04:20:51 PST ---
Fixed in svn trunk


-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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


Josh Micich <jo...@gildedtree.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joerg.bruennert@munich-
                   |                            |airport.de




--- Comment #3 from Josh Micich <jo...@gildedtree.com>  2009-02-13 13:01:16 PST ---
*** Bug 46094 has been marked as a duplicate of this bug. ***


-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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





--- Comment #6 from Joern Muehlencord <jo...@muehlencord.de>  2009-05-05 02:18:58 PST ---
Test Source Code
    try {
      String dataFile = "BrokenExampleFile.xls";
      POIFSFileSystem fs1 = new POIFSFileSystem(new FileInputStream(dataFile));
      HSSFWorkbook workbook = new HSSFWorkbook(fs1);
      HSSFSheet sheet = workbook.getSheetAt(0);

    } catch (Exception ex) {
      ex.printStackTrace();
    }

-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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


Joern Muehlencord <jo...@muehlencord.de> changed:

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




--- Comment #4 from Joern Muehlencord <jo...@muehlencord.de>  2009-05-05 02:16:58 PST ---
reproduced error with 3.5 Beta 5

-- 
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 46137] Failed to create an HSSFWorkbook due to "Unhandled Continue Record" after an EOFRecord

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





--- Comment #2 from Josh Micich <jo...@gildedtree.com>  2009-02-13 12:59:02 PST ---
(In reply to comment #1)
> Fixed in svn trunk
> 

svn r46137 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=46137 )which made it into the 3.5-beta4 release


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