标题:空指针异常,求解决
取消只看楼主
张梦川
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-3-16
结帖率:0
已结贴  问题点数:1 回复次数:0 
空指针异常,求解决
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: /index.jsp:50

47:         </TR>
48:         <%  
49:             List arrMainBoard=new (List)mapBoard.get(0);
50:             for(int i=0;i<arrMainBoard.size();i++){
51:             Board mainboard=(Board)arrMainBoard.get(i);
52:          %>
53:          <TR class="tr3">


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)
root cause

java.lang.NullPointerException
    org.apache.jsp.index_jsp._jspService(index_jsp.java:98)
    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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.
搜索更多相关主题的帖子: class server Board 
2012-03-16 23:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-363414-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.352105 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved