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 45777] New: header overflow
Date Thu, 11 Sep 2008 11:42:30 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45777

           Summary: header overflow
           Product: POI
           Version: 3.0-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ErrorMessage
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: aaacmc@mail.ru


When header length more than 255 symbols (maximum allowed by xls format)
java.lang.ArrayIndexOutOfBoundsException occures

Code:
HSSFWorkbook workBook = new HSSFWorkbook();
HSSFSheet sheet = workBook.createSheet("Sheet 1");
sheet.getHeader().setCenter(reportTitle);

Exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.poi.util.StringUtil.putUnicodeLE(StringUtil.java:208)
        at
org.apache.poi.hssf.record.HeaderRecord.serialize(HeaderRecord.java:179)
        at org.apache.poi.hssf.model.Sheet.serialize(Sheet.java:825)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:1188)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1118)
        at poiutils.HSSFUtils.flushWorkBook(HSSFUtils.java:170)
        at POITest.main(POITest.java:45)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message