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 46776] POI does not work when run the method "cloneSheet()"
Date Wed, 22 Apr 2009 04:47:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46776





--- Comment #4 from ytakahashi@bbreak.co.jp  2009-04-21 21:47:44 PST ---
(From update of attachment 23525)
I suppose that I have the same problem. The error occurred when running the
method "cloneSheet()" to clone a sheet which contains multiple blank cells (a
set of columns in a row with no value but with styling). Please use the
attached spreadsheet to reproduce the error.

Version:
  poi 3.5beta (poi-3.5-beta5-20090219.jar)

Run Source:
  Workbook workbook = WorkbookFactory.create(new FileInputStream("Book1.xls"));
  Sheet cloneSheet = workbook.cloneSheet(0);

Error message:
  Exception in thread "main" java.lang.RuntimeException: The class
org.apache.poi.hssf.record.MulBlankRecord needs to define a clone method
    at org.apache.poi.hssf.record.Record.clone(Record.java:71)
    at org.apache.poi.hssf.model.Sheet$RecordCloner.visitRecord(Sheet.java:404)
    at
org.apache.poi.hssf.record.aggregates.RecordAggregate$PositionTrackingVisitor.visitRecord(RecordAggregate.java:106)
    at
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.visitCellsForRow(ValueRecordsAggregate.java:248)
    at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.visitContainedRecords(RowRecordsAggregate.java:267)
    at org.apache.poi.hssf.model.Sheet.cloneSheet(Sheet.java:420)
    at org.apache.poi.hssf.usermodel.HSSFSheet.cloneSheet(HSSFSheet.java:131)
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook.cloneSheet(HSSFWorkbook.java:696)
    at
org.apache.poi.hssf.usermodel.HSSFWorkbook.cloneSheet(HSSFWorkbook.java:85)

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