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 17890] New: - [RFE] Better Error Message when file read is zero bytes
Date Tue, 11 Mar 2003 19:26:10 GMT
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.

Mime
View raw message