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 22742] New: - Failed to create HSSFWorkbook!
Date Wed, 27 Aug 2003 03:48:15 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=22742>.
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=22742

Failed to create HSSFWorkbook!

           Summary: Failed to create HSSFWorkbook!
           Product: POI
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: shixy@plutus.com.cn


POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("D:/person.xls"));
        System.err.println("in POIFSFileSystem fs");
        HSSFWorkbook wb = new HSSFWorkbook(fs);
        System.err.println("in  HSSFWorkbook wb");

        HSSFSheet sheet = wb.getSheetAt(0);
        System.err.println("in  HSSFSheet sheet");
        HSSFCell cell = null;
        HSSFRow row =null;
        int numRow=87;
fail at HSSFWorkbook wb = new HSSFWorkbook(fs);
message is
java.lang.NegativeArraySizeException

	at org.apache.poi.hssf.record.SSTDeserializer.readStringRemainder
(SSTDeserializer.java:335)

	at org.apache.poi.hssf.record.SSTDeserializer.processContinueRecord
(SSTDeserializer.java:320)

	at org.apache.poi.hssf.record.SSTRecord.processContinueRecord
(SSTRecord.java:539)

	at org.apache.poi.hssf.record.RecordFactory.createRecords
(RecordFactory.java:218)

	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:191)

	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:158)

	at test.testExcel.main(testExcel.java:28)

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