Could not initialize class javax.media.jai.JAI - CF11
Copy link to clipboard
Copied
Hey all,
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
"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
at coldfusion.image.Image.crop(Image.java:1177)
at coldfusion.runtime.CFPage.ImageCrop(CFPage.java:7683)
SYSTEM
Server Details | |
Server Product | ColdFusion |
Version | 11,0,11,301867 |
Tomcat Version | 7.0.68.0 |
Edition | Enterprise |
Operating System | UNIX |
OS Version | 3.10.0-514.2.2.el7.x86_64 |
Update Level | opt/coldfusion11/cfusion/lib/updates/chf11000011.jar |
Adobe Driver Version | 5.1.3 (Build 000094) |
JVM Details | |
Java Version | 1.8.0_121 |
Java Vendor | Oracle Corporation |
Java Vendor URL | http://java.oracle.com/ |
Java Home | /opt/jdk1.8.0_121/jre |
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.
Cheers!
Copy link to clipboard
Copied
Hi Jonathon,
We apologise for the inconvenience, in case if you feel this is a bug, you can log it on our bug base.
https://tracker.adobe.com/#/home
Thanks,
Vikram
Copy link to clipboard
Copied
Bug test: what does the following code produce
<cfset testJAIObject = createobject("java", "javax.media.jai.JAI")>
<cfdump var="#testJAIObject#">
Copy link to clipboard
Copied
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
Java 1.8.0_161
Sandbox security enabled
Windows Server 2012 R2
Copy link to clipboard
Copied
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">

