日期:2014-05-18  浏览次数:20822 次

jspsmart问题
在我自己的机子可以,我用的是Tomcat5.028服务器
传到空间上出现如下错误:   提示不能保存文件
请高手指教!

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:   /admin/up_load.jsp:38

35:   //   若文件不存在则继续
36:   if   (file.isMissing())   {countfiles-=1;continue;}
37:   String   timestamp=TimeStamp.getDate();
38:   file.saveAs( "/img/ill_img/ "+timestamp+file.getFileName());
39:   String   fileName= "/img/ill_img/ "+timestamp+file.getFileName();
40:   db.addIllImg(illId,fileName);
41:   }


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

javax.servlet.ServletException:   File   can 't   be   saved   (1120).
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.admin.up_005fload_jsp._jspService(org.apache.jsp.admin.up_005fload_jsp:105)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

com.jspsmart.upload.SmartUploadException:   File   can 't   be   saved   (1120).
com.jspsmart.upload.File.saveAs(File.java:61)
com.jspsmart.upload.File.saveAs(File.java:42)
org.apache.jsp.admin.up_005fload_jsp._jspService(org.apache.jsp.admin.up_005fload_jsp:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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


------解决方案--------------------
http://blog.163.com/rlqiang
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.