poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28231] New: - POIFS throws an IOException when trying to open a file whose size is not a multiple of 512
Date Tue, 06 Apr 2004 15:00:04 GMT
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


Mime
View raw message