Skip to main content
Participant
September 20, 2017
Answered

cfdocument broken after java upgrade CF 2016

  • September 20, 2017
  • 3 replies
  • 1337 views

I upgraded Java to 1.8.0_144, due to the requirements of Update 5 for CF 2016 (I did not apply Update 5 yet). As a result of this upgrade cfdocument does not work. According to TS there is a known problem, when you get the same error trying to save system settings on Admin page in PDF file, but they did not hear anything about cfdocument.

Below is an error I’m getting:

An exception occurred when performing document processing.
The cause of this exception was that: coldfusion.document.spi.DocumentExportException:java.lang.ArrayIndexOutOfBoundsException: 0

It can be reproduced by simple:


<cfdocument format="PDF">

test

</cfdocument>.

My server is RHEL 7 64 bit.

I will continue to work with TS guys, just wondering if cfdocument works or does not work in similar environment for other people.

    This topic has been closed for replies.
    Correct answer cfperson

    There is a bug in RHEL 7.4. https://bugzilla.redhat.com/show_bug.cgi?id=1484079  All fonts except one get deleted. CF is using  fonts to generate PDF. After fonts are reinstalled problem is gone.

    3 replies

    cfpersonAuthorCorrect answer
    Participant
    September 22, 2017

    There is a bug in RHEL 7.4. https://bugzilla.redhat.com/show_bug.cgi?id=1484079  All fonts except one get deleted. CF is using  fonts to generate PDF. After fonts are reinstalled problem is gone.

    Community Manager
    September 22, 2017

    Have there been any recent changes on the server? 

    James Moberg
    Inspiring
    September 21, 2017

    I'm using Windows w/CF2016 Developer 2016.0.05.303689 w/Java 1.8.0_144 and generating PDFs using the sample CFPDF tag works.  Is this bug limited to only the Linux version?