https://issues.apache.org/bugzilla/show_bug.cgi?id=53167
Priority: P2
Bug ID: 53167
Assignee: [email protected]
Summary: HSSFWorkbook.write(FileOutputStream) method Throwing
java.lang.NoSuchMethodError:
org.apache.poi.util.LittleEndian.putByte([BII)V
Severity: normal
Classification: Unclassified
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 3.2-FINAL
Component: HSSF
Product: POI
code goes somewhat as below:
HSSFWorkbook workBook = new HSSFWorkbook();
HSSFSheet sheet = workBook.createSheet("test");
HSSFRow row = sheet.createRow(0);
HSSFCellStyle stringCellStyle = workBook.createCellStyle();
stringCellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("@"));
row.createCell((short) 0).setCellValue(new HSSFRichTextString("hi"));
row.getCell((short) 0).setCellType(HSSFCell.CELL_TYPE_STRING);
row.getCell((short) 0).setCellStyle(stringCellStyle);
try {
workBook.write(fos);
} catch (IOException ie) {
System.err.println(ie);
} finally {
try {
fos.flush();
fos.close();
fos = null;
} catch (IOException e) {
e.printStackTrace();
}
Above code works absolutely fine while running from eclipse and
poi3.2-final.But when same code is run from jsp it produces following error:
java.lang.NoSuchMethodError: org.apache.poi.util.LittleEndian.putByte([BII)V
--
You are receiving this mail because:
You are the assignee for the bug.