主题: 上传图片点击确认后报错,好象是路径有问题!
作者: elven, 发布日期: 2009-11-02 14:25:54, 浏览数: 8249
Apache Tomcat/5.5.26 - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /kindeditor/jsp/upload.jsp:69 66: FilePath = SavePath + FileNameAuto+ext; 67: FileUrl = SaveUrl + FileNameAuto+ext; 68: java.io.File f= new java.io.File(FilePath); 69: item.write(f); 70: } 71: else{ 72: String fieldValue = item.getString(); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.dgxx.liuyanban.filter.FilterEncode.doFilter(FilterEncode.java:29)

root cause

java.lang.NullPointerException org.apache.commons.fileupload.DefaultFileItem.write(DefaultFileItem.java:442) org.apache.jsp.kindeditor.jsp.upload_jsp._jspService(upload_jsp.java:113) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.dgxx.liuyanban.filter.FilterEncode.doFilter(FilterEncode.java:29)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.


Apache Tomcat/5.5.26



发表新帖 发表回复