日期:2014-05-17  浏览次数:21317 次

apache tomcat 5.528 不能上传文件
不能上传文件 所有的上传文件都报不同的错。。。
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: Unable to compile class for JSP: 

An error occurred at line: 13 in the jsp file: /zyop.jsp
The method getDate() is undefined for the type DateFormate
10: id=DateFormate.getId();
11: jname=DateFormate.toGb((String)request.getParameter("jname"));
12: sid=DateFormate.toGb((String)request.getParameter("sid"));
13: sj=DateFormate.getDate();
14: nr=DateFormate.toGb((String)request.getParameter("nr"));
15:  
16: lyop.add(id,jname,sid,sj,nr,"2");


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:319)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
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:729)


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



------解决方案--------------------
不是提示了嘛...
The method getDate() is undefined for the type DateFormate
------解决方案--------------------
看提示, 应该是日期格式的问题.

别人的机子上, 日期格式肯定与你的日期格式设置不同呗.

不能讲, 别人机子上没问题就代表代码没问题.
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html