java.io.FileNotFoundException网站这种问题偶尔会出现 ,求大神告知怎么解决
java.io.FileNotFoundException:/var/local/169gold/giant/jsp/upload/1366598203164.jpg(N...
java.io.FileNotFoundException: /var/local/169gold/giant/jsp/upload/1366598203164.jpg (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at org.apache.jsp.ueditor.jsp.getRemoteImage_jsp._jspService(getRemoteImage_jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 展开
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at org.apache.jsp.ueditor.jsp.getRemoteImage_jsp._jspService(getRemoteImage_jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 展开
2013-04-24
展开全部
错误提示为,文件不存在错误
/var/local/169gold/giant/jsp/upload/1366598203164.jpg(不存在该文件)
建议的解决方法
File file = new File("/var/local/169gold/giant/jsp/upload/1366598203164.jpg");
if(file.isFile()){
//do something
}else{
//根据实际需求选择忽略文件或者做另外的处理
}
/var/local/169gold/giant/jsp/upload/1366598203164.jpg(不存在该文件)
建议的解决方法
File file = new File("/var/local/169gold/giant/jsp/upload/1366598203164.jpg");
if(file.isFile()){
//do something
}else{
//根据实际需求选择忽略文件或者做另外的处理
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询