Issue with PDFDocumentService importing a TIFF image

Date: 26 April 2009
Product/Release: LANSA Integrator - All versions
Abstract: Issue with PDFDocumentService importing a TIFF image.
Submitted By: LANSA Technical Support


When using the PDFDocumentService to import a TIFF image, you may generate the following error:

File : /userimgx/DEV/41/000731D1.TIF Read TIFF image stack trace: Operation not supported. Map failed at java.lang.Throwable.<init>( at java.lang.Exception.<init>( at<init>( at Method) at at com.lowagie.text.pdf.MappedRandomAccessFile.init(Unknown Source) at com.lowagie.text.pdf.MappedRandomAccessFile.<init>(Unknown Source) at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown Source) at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown Source)


As well as investigating whether this error is caused by a map failure, it is also possible that this error is not caused by a map failure. Another cause of this error is invalid permission on one of the parent directories. For example a change of Security policies can cause an issue with directory permissions thereby causing this error.

To test this possibility, if you are encountering this issue - simply rename the root directory being used and let LANSA Integrator recreate the entire directory structure (e.g. /userimg/.../etc.). If permission is the reason for the error, this will correct the problem.