Skip to main content
ronj46336389
Participant
January 6, 2022
Question

Linux Coldfusion2021 No Service manager is available for PDFg

  • January 6, 2022
  • 2 replies
  • 1016 views

We have recently bought and installed Coldfusion 2021 on a Linux server (comin from CF11). When creating a pdf we get the following error:

coldfusion.document.webkit.PDFgServiceManagerHelper$NoServiceManagerFoundException: No Service manager is available.

 

We restarted and PDFg servlet is available:

Started o.e.j.w.WebAppContext@5b4d25e7{PDFgServlet,/PDFgServlet,file:///opt/Cold
Fusion2021/cfusion/jetty/webapps/PDFgServlet/,AVAILABLE}
{/opt/ColdFusion2021/cfusion/jetty/webapps/PDFgServlet}

But when using 'verify' from ColdFusion we see:

2022-01-06 12:54:43.955:WARN:oejshC.PDFgServlet:qtp1671846437-22: unavailable
java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)

2022-01-06 12:54:43.957:WARN:oejs.HttpChannel:qtp1671846437-22: /PDFgServlet/verify
javax.servlet.ServletException: javax.servlet.ServletException: PDFgServlet@9ac5bab0==coldfusion.pdf.service.remote.PDFGServlet,jsp=null,order=-1,inst=true,async=false 

 

Is there any solution to this? Thank you.

    2 replies

    Charlie Arehart
    Community Expert
    Community Expert
    October 16, 2024

    I realize this is a couple of years on, but in case it may help anyone, I had an instance where I got this error ("No Service manager is available"), and the solution was actually rather simple: on the "PDF service" page of the CF admin, make sure that the "enable" (or "play") button is on (and the "stop" button is not).

     

    In other words, in at least one case I helped with today, the problem was simply that the PDF service was indeed NOT enabled. But there's no words to convey that (in the table to the right of the service). There are only these tiny UI elements, and it can be easy to miss whether the service is enabled or not. And what's also confusing is that the service will "verify" if you try it (reporting "ok"), but that's NOT checking whether the service is ENABLED in CF, only if the service it points to (the add-on service) is running.

     

    Now, if instead you try to run the cfhtmltopdf and get instead the error, "Error occurred while generating PDF", that's a DIFFERENT problem. Often the solution is one I offered in a couple of other places, such as https://stackoverflow.com/a/77327211/90802.

    /Charlie (troubleshooter, carehart. org)
    BKBK
    Community Expert
    Community Expert
    January 6, 2022

    Try the solution offered here: https://community.adobe.com/t5/coldfusion-discussions/installing-coldfusion-add-on-services-pdfg-for-linux-success/td-p/12103936 

     

    But before all that, do a quick check. Open the ColdFusion Administrator. Go to Data & Services > PDF Service. 

     

    There should be a service manager, named Localhost, registered under the section PDF Service Managers. Is it enabled? To be sure, click on the Enabled button.

    Does that help?

    ronj46336389
    Participant
    January 10, 2022

    BKBK, thanks for the quick sespons. I tried the check you offered. The PDF Service Manager is localhost, but it is not enabled. When clicking on the Enabled button I get "Error enabling PDF Service Manager. Check logs for more details."

    The log states:

    "coldfusion.document.webkit.PDFgErrorHandler$ConnectionVerificationFailedException: Connection verification failed."

    "Error enabling PDF Service Manager."

    For the record: we use

    localhost

    127.0.0.1

    port 8994

    weight 2

    https disabled

    ronj46336389
    Participant
    January 10, 2022

    Addition to previous post:

    We also encountered this forum thread: https://community.adobe.com/t5/coldfusion-discussions/cannot-start-pdf-service-manager-on-ubuntu-quot-connection-refused-quot/m-p/11913303

    We took the advice and steps posted there, but without succes. We already have JDK 11.0.13 in use.