Embedding certain images in PDFDocumentService gives error: stack trace: java.lang.UnsatisfiedLinkError: sun/awt/color/CMM

Date:30 June 2011
Product/Release:LANSA Integrator - All Versions
Abstract:JSM fails when images of certain type - for instance high resolution - are used in PDFDocumentService
Submitted By:LANSA Technical Support


When using the PDFDocumentService to include images in a document being generated, using certain types of images will cause JSM to fail with sun/awt related errors - For instance:

stack trace: java.lang.UnsatisfiedLinkError: sun/awt/color/CMM


Make sure that the JAVA awt feature is turned on.

Locate and open the SystemDefault.properties file in the JSM instance system directory

Ensure that the following line exists in the file.

Set java.awt.headless=true as per

#!<studio-project id="20000000-000000" name="lansa">
# Java system default properties