开发者

ColdFusion Error: could not initialize class java.awt.Color

I am working with Mura CMS on the VivioTech installer of Railo which is railo on tomcat and am getting the following error when I try to upload an image to the content. More specifically it is when CF tries to read the image from the file that gets uploaded that the error happens.

The context of the error is on line 79 of the following:

77: <cfset tempFile= "#serverDirectory##createUUID()#.#listLast(source,'.')#"/>
78: <cffile action="copy" source="#arguments.source#" destination="#tempFile#"/>
79: <cfimage action="READ" source="#tempFile#" name="img"> 
80: <cfelse>     
81: <cfimage action="READ" source="#arguments.source#" name="img">
开发者_如何学C

I can't test with another image format as the system won't let me upload anything but JPEG


Are you running on some sort of headless Linux server (i.e. one without a graphical window manager installed)? The Java class may be looking for a library not installed on your server OS. Read this thread for possible leads:

NoClassDefFoundError while accessing GraphicsEnvironment.getLocalGraphicsEnvironment on Tomcat

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜