You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/05/01 11:20:15 UTC

[Bug 53167] New: HSSFWorkbook.write(FileOutputStream) method Throwing java.lang.NoSuchMethodError: org.apache.poi.util.LittleEndian.putByte([BII)V

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.

[Bug 53167] HSSFWorkbook.write(FileOutputStream) method Throwing java.lang.NoSuchMethodError: org.apache.poi.util.LittleEndian.putByte([BII)V

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53167

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Nick Burch <ni...@alfresco.com> ---
You have multiple copies of POI on your classpath, some of which are old.
Ensure you only have one set, see the FAQ if you don't know how to check
http://poi.apache.org/faq.html

-- 
You are receiving this mail because:
You are the assignee for the bug.