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

Description:

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: java.io.IOException: Operation not supported. Map failed at java.lang.Throwable.<init>(Throwable.java:196) at java.lang.Exception.<init>(Exception.java:41) at java.io.IOException.<init>(IOException.java:40) at sun.nio.ch.FileChannelImpl.map0(Native Method) at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:742) 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)

Solution:

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.