标题:空指针异常,求解决
只看楼主
张梦川
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-3-16
结帖率:0
已结贴  问题点数:1 回复次数:2 
空指针异常,求解决
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
C_戴忠意
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:2
帖 子:575
专家分:1349
注 册:2011-10-21
得分:1 
看着就晕丶java刚入门

编程之路定要走完……
2012-03-20 15:51
付政委
该用户已被删除
得分:1 
提示: 作者被禁止或删除 内容自动屏蔽
2012-03-20 22:12



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




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

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