Highlighted

Could not initialize class javax.media.jai.JAI - CF11

Community Beginner ,
Mar 13, 2017

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 ProductColdFusion
Version11,0,11,301867
Tomcat Version7.0.68.0
EditionEnterprise 
Operating SystemUNIX 
OS Version3.10.0-514.2.2.el7.x86_64 
Update Levelopt/coldfusion11/cfusion/lib/updates/chf11000011.jar 
Adobe Driver Version5.1.3 (Build 000094) 
JVM Details
Java Version1.8.0_121 
Java VendorOracle Corporation 
Java Vendor URLhttp://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!

Views

1.7K

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 javax.media.jai.JAI - CF11

Community Beginner ,
Mar 13, 2017

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 ProductColdFusion
Version11,0,11,301867
Tomcat Version7.0.68.0
EditionEnterprise 
Operating SystemUNIX 
OS Version3.10.0-514.2.2.el7.x86_64 
Update Levelopt/coldfusion11/cfusion/lib/updates/chf11000011.jar 
Adobe Driver Version5.1.3 (Build 000094) 
JVM Details
Java Version1.8.0_121 
Java VendorOracle Corporation 
Java Vendor URLhttp://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!

Views

1.7K

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
Mar 13, 2017 0
Adobe Employee ,
Mar 14, 2017

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

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...
Mar 14, 2017 0
Adobe Community Professional ,
Mar 18, 2017

Copy link to clipboard

Copied

Bug test: what does the following code produce

<cfset testJAIObject = createobject("java", "javax.media.jai.JAI")>

<cfdump var="#testJAIObject#">

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...
Mar 18, 2017 0
Explorer ,
Feb 25, 2018

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

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...
Feb 25, 2018 0
Community Beginner ,
Aug 17, 2018

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">

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...
Aug 17, 2018 0