poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53167] New: HSSFWorkbook.write(FileOutputStream) method Throwing java.lang.NoSuchMethodError: org.apache.poi.util.LittleEndian.putByte([BII)V
Date Tue, 01 May 2012 09:20:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53167

          Priority: P2
            Bug ID: 53167
          Assignee: dev@poi.apache.org
           Summary: HSSFWorkbook.write(FileOutputStream) method Throwing
                    java.lang.NoSuchMethodError:
                    org.apache.poi.util.LittleEndian.putByte([BII)V
          Severity: normal
    Classification: Unclassified
          Reporter: ankur.bitsian@gmail.com
          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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message