ColdFusion 错误:无法初始化类 java.awt.Color
我正在 Railo 的 VivioTech 安装程序上使用 Mura CMS,该安装程序是 tomcat 上的railo,当我尝试将图像上传到内容时,出现以下错误。更具体地说,当 CF 尝试从上传的文件中读取图像时,就会发生错误。
错误的上下文位于以下第 79 行:
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">
我无法使用其他图像格式进行测试,因为系统不允许我上传除 JPEG 之外的任何内容
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">
I can't test with another image format as the system won't let me upload anything but JPEG
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在某种无头 Linux 服务器上运行(即没有安装图形窗口管理器的服务器)? Java 类可能正在寻找未安装在您的服务器操作系统上的库。阅读此线程以获取可能的线索:
NoClassDefFoundError while accessing GraphicsEnvironment.getLocalGraphicsEnvironment on Tomcat
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