myeclipse调试错误 求助!
tomcat报错如下:HTTPStatus500-descriptionTheserverencounteredaninternalerror()thatprevente...
tomcat报错如下:
HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /iframe/head.jsp at line 10
7: String path = request.getContextPath();
8: String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
9: List sysList=sys.getSiteInfo();
10: List affList=abc.getAllAffiche();
11: List newsList=news.getIndexNews();
12: List AllnewsList=news.getAllNews();
13: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: java.lang.Error: Unresolved compilation problem:
The method add(int, Object) in the type List is not applicable for the arguments (int)
root cause
java.lang.Error: Unresolved compilation problem:
The method add(int, Object) in the type List is not applicable for the arguments (int) 展开
HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /iframe/head.jsp at line 10
7: String path = request.getContextPath();
8: String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
9: List sysList=sys.getSiteInfo();
10: List affList=abc.getAllAffiche();
11: List newsList=news.getIndexNews();
12: List AllnewsList=news.getAllNews();
13: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: java.lang.Error: Unresolved compilation problem:
The method add(int, Object) in the type List is not applicable for the arguments (int)
root cause
java.lang.Error: Unresolved compilation problem:
The method add(int, Object) in the type List is not applicable for the arguments (int) 展开
1个回答
展开全部
这一行出错
10: List affList=abc.getAllAffiche();
出错原因为
The method add(int, Object) in the type List is not applicable for the arguments (int)
10: List affList=abc.getAllAffiche();
出错原因为
The method add(int, Object) in the type List is not applicable for the arguments (int)
更多追问追答
追问
请问有解决方法吗 我是新手。。
因为之前朋友曾帮调好过 是改的myeclipse中的环境设置 没有改过代码 但我忘记是怎么调了。。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询