We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
We have a bit of an odd issue on one of our Linux CentOS 7 64bit servers with ColdFusion 11 Enterprise (latest patches installed), when we use features in CFImage we get the following logged errors:
"Error","ajp-bio-8014-exec-5","03/13/17","15:29:25",,"Could not initialize class javax.media.jai.JAI The specific sequence of files included or processed is: /home/test/public_html/test.cfm, line: 8 "
java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI
|Adobe Driver Version||5.1.3 (Build 000094)|
|Java Vendor||Oracle Corporation|
|Java Vendor URL||http://java.oracle.com/|
Any ideas on what could be the issue here? We have done an update on the JAVA version and also checked that all jai_core.jar/jai_codec.jar/jai_imageio.jar are present and correct.
Bug test: what does the following code produce
<cfset testJAIObject = createobject("java", "javax.media.jai.JAI")>
Same problem here!
But possibly resolved after revising Java settings
to include -XX:+UseG1GC (replacing -XX:+UseParallelGC).
And it still worked after changing back to Parallel,
but maybe more trustworthy with the G1 setting.
ColdFusion 11 Update 13
Sandbox security enabled
Windows Server 2012 R2
same issue here. CF2016 update 6 jre1.8.0_171
tried G1GC, didn't fix the problem.
tried reverting back to c:\coldfusion2016\jre\. didn't fix the problem
happens on invoke of imageScaleToFit()
additionally, the exception that's thrown is uncatchable with <cfcatch type="any">