Highlighted

Could not initialize class sun.font.SunFontManager in Official Docker Container

New Here ,
May 05, 2020

Copy link to clipboard

Copied

I am running the official Docker Coldfusion Container:

eaps-docker-coldfusion.bintray.io/cf/coldfusion:latest

 

When I try to create a PDF using <CFDOCUMENT>, I receive the following error message.

I know that lucee had some problems with this based on the Java version, but I assumed that the official image/container would work.

 

Here is the code block it works great on the exact same version of ColdFusion installed locally.

 

<cfdocument format="pdf" scale="#URL.scale#">
   <cfoutput>#cfhttp.filecontent#</cfoutput>
</cfdocument>

 

 

Thank you

Views

307

Likes

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

Could not initialize class sun.font.SunFontManager in Official Docker Container

New Here ,
May 05, 2020

Copy link to clipboard

Copied

I am running the official Docker Coldfusion Container:

eaps-docker-coldfusion.bintray.io/cf/coldfusion:latest

 

When I try to create a PDF using <CFDOCUMENT>, I receive the following error message.

I know that lucee had some problems with this based on the Java version, but I assumed that the official image/container would work.

 

Here is the code block it works great on the exact same version of ColdFusion installed locally.

 

<cfdocument format="pdf" scale="#URL.scale#">
   <cfoutput>#cfhttp.filecontent#</cfoutput>
</cfdocument>

 

 

Thank you

Views

308

Likes

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
May 05, 2020 0
Adobe Community Professional ,
May 07, 2020

Copy link to clipboard

Copied

I'm not so sure that's going to work. The Docker container has a pretty stripped-down version of CF in it, as far as I can tell. CF normally comes with a bunch of platform-specific libraries as well as CF itself. You can connect it to an external add-on service - which would normally be installed on the same machine as CF - but this external add-on service isn't actually part of the Docker container. There are several Docker environment variables that will let you point it to an external source.

 

Compounding my answer a little bit is that I'm not sure whether the add-on service is responsible for CFDOCUMENT or just the newer CFHTMLTOPDF tags. But I do know that either way, it's using stuff that's not actually part of CF. So I'm not so confident it'll work in any case.

 

Dave Watts, Eidolon LLC

Likes

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
Reply
Loading...
May 07, 2020 0
BeRadB LATEST
Explorer ,
Sep 04, 2020

Copy link to clipboard

Copied

I just ran into this issue, today.

is there a way to specify a pdf service running on a different machine?

 

Likes

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
Reply
Loading...
Sep 04, 2020 0