HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage 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: 24 in the jsp file: /cxtj/xsxxquest.jsp
The method getDateCount(String) in the type QuestString is not applicable for the arguments (String, String)
21:    qu.setAndor(andor); qu.setSdate(sdate); qu.setEdate(edate);
22:    //String strCount=qu.getCount(table);
23:    //调用Bean中getDateCount()方法来获得在用户调教的时间段里查询到的记录总数
24:    String strCount=qu.getDateCount(table,date);
25:    if(pages==null||pages.equals("null")){
26:      pages="0";
27:    }
An error occurred at line: 30 in the jsp file: /cxtj/xsxxquest.jsp
The method getDateString(String) in the type QuestString is not applicable for the arguments (String, String)
27:    }
28:    qu.setQuerySql(httpFile,pages,strCount);
29:    //用来获得在表tb_sell中在用户提交的时间段里查询到的记录的结果集
30:    ResultSet rs=rst.getResult((String)qu.getDateString(table,date));
31:    int i=0,Page=qu.getCurPage(),pagesize=qu.getPageSize();
32:    while(rs.next()){
33:      if(i>(Page-1)*pagesize-1){
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:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
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:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
--------------------------------------------------------------------------------Apache Tomcat/5.5.26

解决方案 »

  1.   

    The method getDateCount(String) in the type QuestString is not applicable for the arguments (String, String)

    getDateCount(String)函数定义的时候参数是一个,调用的时候传了2个参数。
      

  2.   

    The method getDateCount(String) in the type QuestString is not applicable for the arguments (String, String)getDateCount(String)函数定义的时候参数是一个,调用的时候传了2个参数。
      

  3.   

    The method getDateString(String) in the type QuestString is not applicable for the arguments (String, String)那简单,要不就改用getDateString(String),要不就改用两个var