Thanks for your reply Ulf. For starters, when you post code of any length, please. It makes it much more readable, and thus much more likely that people will be willing to look at it. Please go back and edit your first post to use those tags.

Poi-scratchpad-3.5-final.jar

POI 3. Canon Multifunction Printer K10339 Manual. 17 is the last release to support Java 6. The next release will be 4.0.0 and supports min. A summary of changes is available in the Release Notes.

The problematic line is this one: out.println('+cell+') If you concatenate an object reference -like cell- to a, then its toString method will be called to produce a string. This is in most cases not what you want. You'll need to look at the javadocs of whatever class cell is an object of, and see if there's some method that returns the value of the cell. InputStream input = ftp.retrieveFileStream('MPD Variable Table. Hp Laserjet 1020 Plus Driver For Window Xp. xlsx'); workbook = new XSSFWorkbook(input); -->OutofMemoryError I am reading Excel file from FTP and sending inputstream to the work book.

For smaller sizes my code is working fine. But Excel in production has more than 40,000 rows and 255 cells with some fancy(colors, etc.,) alignment. So the size is coming as 32 MB. While loading into work book I am getting error as OutofMemoryError. I increased to 2GB (-Xmx2048), but still I am not able to resolve.

How can I fix this. The Excel have lot of fancy things, So I don't want to read all those. I need data to insert into table.

This is a batch job in my Production system. Fuji Xerox Docucentre Ii C3000 Driver Windows 7 64 Bit. Dear friends, there is a exception.

Org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13] at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:147) i use the code. Response.setContentType('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); the code for reading data. InputStream inp=fieldItem.getInputStream(); //POIFSFileSystem fs = new POIFSFileSystem(fis); XSSFWorkbook workbook1=(XSSFWorkbook) WorkbookFactory.create(inp); can anybody help me solve this problem. Hi, I updated jars to 3.7 version. Following are the jars I added to classpath. Poi-3.7-20101029.jar poi-ooxml-3.7-20101029.jar poi-scratchpad-3.7-20101029.jar poi-ooxml-schemas-3.7-20101029.jar Piece of code used for reading existing excel file: InputStream fs = new FileInputStream(file); Workbook wb = WorkbookFactory.create(fs); Getting following error when trying to read xls and xlsx file. Error- java.lang.NoSuchMethodError: org.apache.poi.poifs.filesystem.POIFSFileSystem.hasPOIFSHeader(Ljava/io/InputStream;)Z Modified code as, POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(file)); Workbook wb = WorkbookFactory.create(fs); Then, it works fine for xls but not for xlsx format.