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 2003/03/11 20:26:10 UTC

DO NOT REPLY [Bug 17890] New: - [RFE] Better Error Message when file read is zero bytes

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17890

[RFE] Better Error Message when file read is zero bytes

           Summary: [RFE] Better Error Message when file read is zero bytes
           Product: POI
           Version: 2.0-dev
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: POIFS
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: dmui@apache.org


The following exception is generated when trying to read a file that zero bytes:

========================================
java.io.IOException: Unable to read entire header; -1 bytes read; expected
512 bytes
	at
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:114)
	at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java
========================================

Provide a more descriptive exception message.