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] New: POI does not work when run the method "cloneSheet()"
Date Fri, 27 Feb 2009 05:27:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46776

           Summary: POI does not work when run the method "cloneSheet()"
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: xueyunpiaopiao@yahoo.co.jp


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

Run Source:

workbook = WorkbookFactory.create(new FileInputStream("dd.xls"));
HSSFSheet cloneSheet = workbook.cloneSheet(0);

Error message:
Caused by: 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)

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