r2 - 29 Nov 2007 - 02:05:48 - ZacSim?You are here: TWiki >  Main Web  >  ElixirRepertoireServer > IText-PDFFileHandleInvalid

iText Issue - PDF File Handle Invalid

Problem Description:

This iText issue may occurs when there are high load/simultaneous rendering of reports through Itext.
Note: This is meant for version 6.x and above and works for Java 1.5.0_08 and above. It will be recommended to use the latest version of Java.

Error Message:

ExceptionConverter: java.io.IOException: The handle is invalid
   at java.io.RandomAccessFile.read(Native Method)
   at com.lowagie.text.pdf.RandomAccessFileOrArray.read(Unknown Source)
   at com.lowagie.text.pdf.RandomAccessFileOrArray.readInt(Unknown Source)
   at com.lowagie.text.pdf.TrueTypeFontSubSet.readLoca(Unknown Source)
   at com.lowagie.text.pdf.TrueTypeFontSubSet.process(Unknown Source)
   at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Unknown Source)
   at com.lowagie.text.pdf.FontDetails.writeFont(Unknown Source)
   at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source)
   at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
   at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
   at com.lowagie.text.Document.close(Unknown Source)

Download here a newer version of iText that has this issue resolved.

Patch Resolution:

To resolve this, please following the instruction carefully.

1) Delete the current iText.jar from your Server\lib
2) Deploy the above downloaded - itext-1.1.4-elx.jar into this folder - Server\lib
3) Start/Restart your Server before this can be taken into effect

-- ZacSim? - 23 Nov 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback