POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream ("C:\\Projects\\KPM\\POI Test\\xls\\report_card.xls")); HSSFWorkbook wb = new HSSFWorkbook(fs); 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:216) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:181) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:153) at TestReadWriteSample.main(TestReadWriteSample.java:28) The SSTDeserializer's status before the error happened charCount=122 coninuationExpectedChars=-12 extendedText=true extensionLength=16 richText=true runCount=2 unfinishedString="........year:Y m \f " wideChar=true record=byte[2452] stringRemainderSizeInBytes=-24
This bug has been resolved in CVS head. Could you build POI from CVS and check that your problem has been resolved. Jason