• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTMLTOPDF fails after upgrading Java

New Here ,
Mar 19, 2024 Mar 19, 2024

Copy link to clipboard

Copied

This issue seems to be related to the post below.

It seems as though CFHTMLTOPDF will not work with JAVA 11.0.17 and above on CF2021. We have tested this out by updating CF2021 to the latest JAVA, 11.0.22. When we update the add-on service(jetty.lax LAX.NL.CURRENT.VM) to use the JVM, as per the section 2.7.4 of the 2021 Lockdown Guide, we get a Server Error. "coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF."

In ColdFusion Admin we can "update PDF service Manager" and receive a "Service Manager localhost updated." message and the connection status says "ok". Everything seems to be happy but if we try to run a simple hello world page we get the error. 


If we change the JVM in Jetty.lax to a version prior to 11.0.17(but still leaving CF on the latest) then the error goes away and the pdf is rendered as expected. We can also fix the issue by updating the JVM in jetty.lax to an Eclipse Temurin JDK, including the latest 11.0.22. So it appears to be an issue/conflict with the Oracle JDK. Myself and another developer have both tested this out on seperate machines/server with the same result.

 

In the post referenced above the solution was to leave the jetty.lax pointing to the default JRE folder packaged with ColdFusion2021, 11.0.11. Is this an acceptaple practice or is there some guidance we've missed? Is there some setting/config that we need to modify to use the newer JDK? As stated in the Lockdown guide, it would appear that we should be updating the JVM for the add-on services. It would appear anyone that has had an issue with updating, seems to leave the add-on defaulting back to the original file. Thoughts?

 

For reference we tested this with 2021 update 12 and then just applied the update 13 with the same result.

ColdFusion version  2021.0.13.330286

 

Also, there does not seem to be an issue on CF2023, even when we applied 17.0.10. Unfortunately we are not ready to move to 2023 just yet. 

 

Views

116

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

LATEST

Thanks for the reply. I just wanted to reach to the community before submitting anything. Bug report has been submitted. CF-4221200  

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation