tracker issue : CF-4204126

select a category, or use search below
(searches all categories and all time range)

Class not found error when using cfdocument with Java 11.0.2

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Celio S. / ()

Created: 03/28/2019

Components: Document Management

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: All CF2018 builds /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / uBuntu 16.04

Vote Count: 0

Problem Description: java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager

Steps to Reproduce: Use cfdocument tag

Actual Result: Tag is unusable

Expected Result: Rendered PDF document

Any Workarounds: Downgrading to Java 10



Hi Celio,   Can you try importing your required font files through ColdFusion administrator and try again with Java 11? Java 11 by default has removed a lot of fonts, and without importing, things will break as CF is unable to read these fonts   Thanks, Kailash
Comment by Kailash B.
30629 | April 15, 2019 07:36:09 AM GMT
Hi Kailash, Thanks for the response. As you can see from the attached document, there are no fonts involved in the test, I'm simply instantiating the tag and try to output a PDF result with the word test in it. <cfdocument format="pdf"> <cfoutput>test</cfoutput> </cfdocument> Celio
Comment by Celio S.
30670 | April 30, 2019 04:26:17 PM GMT