https://issues.apache.org/bugzilla/show_bug.cgi?id=46667
Summary: HSSF.createCell(int) - java.lang.NoSuchMethodError
Product: POI
Version: 3.2-FINAL
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P1
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
While trying to export data from db to an Excel file using HSSF, I get the
following error:
java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFRow.createCell(I)Lorg/apache/poi/hssf/usermodel/HSSFCell
Method that is being used: HSSFRow.createCell(int)
I have changed from using the deprecated method HSSFRow.createCell(short),
because of an issue with rows greater than 32768 (methods bombs out, reason
relating to Bug 44539).
private HSSFWorkbook createWorkbook() throws IOException {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("WorkSheet1");
HSSFRow row = sheet.createRow();
for(int i=0; i < 10; i++){
row.createCell(i).setCellValue(new HSSFRichTextString("somesort of
string"));
}
return wb;
}
I've tried with precompiled libraries versions 3.2 Final and 3.5 Beta with no
luck.
--
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: [email protected]
For additional commands, e-mail: [email protected]