毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> WEB开发 >> 正文

description The server encountered an internal error () that prevented it from fulfilling this request

更新时间:2012-9-15:  来源:毕业论文

HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause 

java.lang.NullPointerException
com.edu.hbcit.Bean.SqlBean.getSearch(SqlBean.java:183)
org.apache.jsp.SearchList_jsp._jspService(SearchList_jsp.java:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.


页面代码:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示记录</title>
</head>
<body>
<center >
<font color=red size=72>运动会组别如下:</font>
<hr>
<table border=1 bgColor="#ffffff" width="500px" height="100px">
<tr>
<td>ID</td>
<td>组别</td>
<td>类型</td>
<td><center>操作</center></td>
</tr>

<jsp:useBean id="sBean"class="com.edu.hbcit.Bean.SqlBean"/>
<jsp:useBean id="jBean" class="com.edu.hbcit.Bean.JavaBean"/>
<%
  String sql ="select * from t_group order by id";
  java.util.List list =sBean.getSearch(sql);  
  for(java.util.Iterator it =list.iterator();it.hasNext();)
  {
  //获取一个JavaBean对象
  jBean =(com.edu.hbcit.Bean.JavaBean)it.next();
  %> 
  <tr>
  <td><%=jBean.getId() %></td>
  <td><%=jBean.getName() %></td>
  <td><%=jBean.getType() %></td>

  <td>
  <a href="Insert.jsp">增加</a>
  <a href="Delete.java?id=<%=jBean.getId()%>">删除</a>&nbsp;
  <a href="SearchById.java?id=<%=jBean.getId()%>">修改</a>
  </td>
  </tr>
  
  <% }%>
  
</table>
</center>
</body>
</html>
 
sBean.getSearch(sql);

sBean好像没定义,也没有引用包可能,你自己查一下,产生的NULL

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。