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 2004/04/06 17:00:04 UTC

DO NOT REPLY [Bug 28231] New: - POIFS throws an IOException when trying to open a file whose size is not a multiple of 512

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28231>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28231

POIFS throws an IOException when trying to open a file whose size is not a multiple of 512

           Summary: POIFS throws an IOException when trying to open a file
                    whose size is not a multiple of 512
           Product: POI
           Version: unspecified
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: POIFS
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: sackley@cfl.rr.com


This is a big problem because the creating applications (Word, Excel) will open 
these files with no problems. I get the following stacktrace:
java.io.IOException: Unable to read entire block; 1 byte read; expected 512 
bytes

	at org.apache.poi.poifs.storage.RawDataBlock.<init>
(RawDataBlock.java:62)

	at org.apache.poi.poifs.storage.RawDataBlockList.<init>
(RawDataBlockList.java:51)

	at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>
(POIFSFileSystem.java:86)

	at td.plugin.thumbnail.OleThumbnailRenderer.createRenderedImage
(OleThumbnailRenderer.java:95)

	at td.plugin.thumbnail.OleThumbnailRenderer.main
(OleThumbnailRenderer.java:218)

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org