Skip to main content
Participant
Sep 20, 2017 10:55 PM UTC
Answered

cfdocument broken after java upgrade CF 2016

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 is closed to new replies. Start a new post to keep the conversation going.
    cfpersonCorrect answer
    Participant
    Sep 22, 2017 10:14 PM UTC

    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
    Sep 22, 2017 10:14 PM UTC

    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.

    Translate
    Inspiring
    Sep 22, 2017 6:00 AM UTC

    Have there been any recent changes on the server? 

    Translate
    James Moberg
    Inspiring
    Sep 21, 2017 8:52 PM UTC

    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?

    Translate