Image error with 5.3.9.133 on new linux headless server

I migrate to a new server,
old server had version 5.3.7.47
new server : version 5.3.9.133

I did not change anything in the coding of templates, and I get this error at the function
img.DrawText
Error is : Lucee 5.3.9.133 Error (java.lang.InternalError)
Message java.lang.reflect.InvocationTargetException
Stacktrace The Error Occurred in
/var/www/C030/site/index/captcha_generate_lucee.cfm: line 55

53: img=imageNew("",150,50,“RGB”,"##bf4f36");
54: style={size=“40”,style=“BOLD”};
55: img.DrawText("#pwd#",20,35,style);
56: cfimage(action=“writeToBrowser”,source=img);
57:

the bug does not come from the variable #pwd#, it is used a bit over , and do not give an error. Variable “pwd” should contain some random caracters for a captcha.

I am very afraid, all sites are using this.
Please, What to do ? (back to older version ?)
Thanks for urgent help.
Pierre.

which version of the image extension and java?

New version of Lucee : Java 11.0.15 (Eclipse Adoptium) 64bit
Old version of lucee : Java 11.0.4 (AdoptOpenJDK) 64bit

New version of Lucee :
lucee.image.extension 1.0.0.42 22 avr. 2022 2.05mb Image extension
and
com.sun.media.jai.codec (sun.jai.codec) 1.1.2.0003L 321kb Sun Microsystems, Inc. Image extension
(comes from the bundles)

old version
javax.media.jai (sun.jai.core) 1.2.1.0003L 1.81mb Sun Microsystems, Inc. Image extension
and
com.sun.media.jai.codec (sun.jai.codec) 1.1.2.0003L 321kb Sun Microsystems, Inc. Image extension
(comes from the bundles)

hope that can help ?

What is the best to do ?
pierre.

you need to install fonts on headless linux
see [LDEV-2619] - Lucee

I have updated the README for the extension repo with this advice

Also added this information to Lucee docs

Well, Thanks,
I first install ttf-mscorefonts-installer_3.8_all.deb
not workink yet, same error
Then I did the : apt install fontconfig
reboot the server,

And it is working now.
Thanks.
Pierre.

1 Like