读取验证码时报错 Caused by: javax.imageio.IIOException: Can't create cache file!
来源:互联网 发布:java多线程lock接口 编辑:程序博客网 时间:2024/05/20 05:11
错误定位如下:
ImageIO.write(image, “JPEG”, bays);
Caused by: javax.imageio.IIOException: Can't create cache file! at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) at javax.imageio.ImageIO.write(ImageIO.java:1558) ... 119 more Caused by: java.io.IOException: 系统找不到指定的路径。
网上有人说是TOMCAT目录,在TOMCAT根目录(与bin目录同级)创建temp目录,再刷新页面,就可以,但是我是的tomcat目录下是有temp目录的,后来发现是tomcat文件夹只有读权限没有写的权限。
最后的解决办法是将tomcat文件夹属性的读写权限开放即可
阅读全文
0 0
- 读取验证码时报错 Caused by: javax.imageio.IIOException: Can't create cache file!
- 读取验证码时 Caused by: javax.imageio.IIOException: Can't create cache file!
- 使用javax.imageio.ImageIO生成验证码时报错javax.imageio.IIOException: Can't create output stream!
- 解决:Tomcat不能加载图片问题.javax.imageio.IIOException: Can't create cache file!
- JSP彩色验证码,javax.imageio.IIOException: Can't create output stream! 解决方法
- javax.imageio.IIOException: Can't create output stream! (生成验证码Servlet)
- javax.imageio.IIOException: Can't create output stream! (生成验证码Servlet)
- javax.imageio.IIOException: Can't create output stream!tomcat 验证码,图片(原理)
- javax.imageio.IIOException: Can't create output stream!tomcat 验证码,图片(原理)
- javax.imageio.IIOException: Can't create output stream!
- javax.imageio.IIOException: Can't create output stream!
- javax.imageio.IIOException: Can't create output stream!
- javax.imageio.IIOException: Can't create output stream!
- javax.imageio.IIOException: Can't create output stream解决方法
- javax.imageio.IIOException: Can't create output stream解决方法
- javax.imageio.IIOException: Can't read input file!
- javax.imageio.IIOException: Can't read input file!
- 解决tomcat报错javax.imageio.IIOException: Can't create output stream!
- Shell编程基础[转作者嵌入式Linux见长,见解深刻]
- Java线程中断机制-如何中断线程
- Opencv基础之FileStorage的读写操作
- 【转载】定位 UNIX 上常见问题的经验总结
- Cg Programming/Unity/Shading in World Space世界空间中的着色器
- 读取验证码时报错 Caused by: javax.imageio.IIOException: Can't create cache file!
- Java 的容器类 List 和 Map 中的 toString( ) 方法
- Ubuntu14.04升级到Ubuntu16.04
- 安卓计算器代码实例
- 每300毫秒获得一次鼠标所在位置的x的值和y的值
- 机器学习的期刊和会议
- javascript基础
- c++中vector的用法详解
- <菜鸟反攻战>第二章--硕正插件