访问时出现了错误,跳出了这段代码怎么回事。在别的电脑能够跳转!!!谢谢大佬们

测试小白01 2017-11-18 01:06:17
Type Exception Report

Message An exception occurred processing JSP page [/viewStudent.jsp] at line [17]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception
org.apache.jasper.JasperException: An exception occurred processing JSP page [/viewStudent.jsp] at line [17]

14: </tr>
15:
16: <%
17: List<Student> students=studentUtil.getAllStudent();
18: Iterator<Student> it=students.iterator();
19: while(it.hasNext()) {
20: Student temp=it.next();


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:481)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


Root Cause
java.lang.NullPointerException
edu.gcp.dao.StudentDAOImpl.getAllStudent(StudentDAOImpl.java:20)
org.apache.jsp.viewStudent_jsp._jspService(viewStudent_jsp.java:136)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


Note The full stack trace of the root cause is available in the server logs.
...全文
186 3 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
mtian2020 2017-11-20
studentUtil,这个实例不存在
  • 打赏
  • 举报
回复
测试小白01 2017-11-18
那怎么弄这个东东
  • 打赏
  • 举报
回复
李德胜1995 2017-11-18
空指针都看不出来。。。。。
  • 打赏
  • 举报
回复
相关推荐
发帖
Web 开发
加入

8.0w+

社区成员

Java Web 开发
社区管理员
  • Web 开发社区
申请成为版主
帖子事件
创建了帖子
2017-11-18 01:06
社区公告
暂无公告