After installing update 16 on ACF 2018 this weeken...
# adobe
m
After installing update 16 on ACF 2018 this weekend, we are greeted with "Reason: SERVER ERROR - Error occurred while generating PDF" errors all morning. The command on this line is: cfhtmltopdf (which is the only place in our code we use this. We've always gone old school with cddocument... Has anyone else seen an error like this? I did restart the "ColdFusion2018Add-onServices" but it did not help.
m
And you tested the connection in the Coldfusion administrator (under PDF service) and that works? I haven't found any good logs related to this, but it's usually some sort of connection issue.
m
Also don't forget when applying any Update, any hotfixes will need to be reinstalled.
s
@Michael Miller The pdf's that you are trying to generate, are they using cfdocument or cfhtmltopdf?
m
The only one failing is using cfhtmltopdf. I suspect when systems installed the update this weekend, they failed to set up the Add-On Server correctly. I just wanted to make sure a bug was not introduced. I'm going through the Lockdown Guide right now.
When I go to PDF Service and "verify all services" (There is only 1) it says OK. Code as simple as this is failing however. <cfhtmltopdf destination="c:\arc\test_server.pdf" overwrite="true"> <p>Test</p> </cfhtmltopdf>
s
@Michael Miller have you put a ticket with us for this issue? If not, can you log a ticket?
m
I'm going to back up my dev to Update 15 and test, if I find that 16 is the issue I will log it on the Bug Tracker.
s
Instead of logging it in bug tracker, please send an email to cf.instal@adobe.com . In the subject line, mention attn Sandip
I will look into it
m
Thanks... I thought it might have something to do with Sandbox Security, but I don't have that on in Dev... I will keep looking here too. I did restore Update 15 and I got the same error, though we were not getting this error before the weekends update.
c
Michael, did you solve this? If not, there may be a simple workaround until you (or Adobe or anyone else) can. See the workaround offered in the original question on this same matter in a CF forum post. And since that was easily missed by some readers (as another reply was marked as the "answer"), see a comment I just made there to help clarify things: https://community.adobe.com/t5/coldfusion-discussions/cfhtmltopdf-fails-after-restarting-services/m-p/13670561#M194672 Let us know is that solves things for you (at least to get it back working, without need of restarting CF).
m
So spooky! I was reading your blog on installing ACF 2021 and I get a slack notification from you! Greeting from Omaha. We regard you highly here. I read this blog, and though it did not help me at the time, I am seeing a similar issue after installing 2021 when I moved from Java 11.0.11 to Java 11.0.18. I'm starting to wonder if there is an issue with my version of Java. Adobe is looking at this, and for the mean time we have replaced the <cfhtmltopdf> command with <cfdocument> and we get about 95% of the functionality we had. There was just some special formatting that had been asked for that will be missing until we get this resolved. This gives me more time to research the issue, so I'm going to go back and read your article more carefully. Thanks Charlie!
c
Thanks for the kind regards, Michael. And indeed, in my comment on that post, I do in fact end by pointing out how SOME errors of this sort (with cfhtmltopdf) ARE in fact due to issues of the JVM that the add-on service is using. But if it simply is due to having restarted the add-on service, while CF was running, then the workaround (of stopping/editing/starting the service) is a great option to "get things working again".
m
@carehart That did work using JVM 11.0.11 but not JVM 11.0.18. I have downloaded a copy of 18 from the Adobe site to try. Might be identical to what I am using now. Adobe Support sent me an email about meeting later today. When we get this resolved. I will post an update. BTW, I'm part of a group here writing docs on how we are going to upgrade to ACF 2021 and I'm having the same issue with both 2018 and 2021.
Several things have happened since I last posted. I wanted to follow up as there were a couple of people with the same issue. I've been working with Ravi at Adobe, and he has not been able to duplicate my issue. When my partner returned from PTO, he reminded me that we also updated our JVM from 11.0.16.1 to 11.0.18. I'm also working with and installation of ACF 2021 along with ACF 2018. The issue seems to follow the version of JAVA and not the version or update of ACF. Oracle JVM 11.1.18 - Server Error Oracle JVM 11.1.17 - Server Error Oracle JVM 11.1.16.1 - Success! MS JVM 11.1.18 - Success! AZUL JVM 11.1.18 - Success! OPEN JDK 11.1.18 - Success! My company is not going to let me run any of those in production, so for now we have decided to modify our code to use the trustworthy CFDOCUMENT command in place of CFHTMLTOPDF.