我有一个JSP页面调用SQL存储过程,有时会出现页面死掉的问题,不知道什么原因,请教大家。存储过程都是最简单的SELECT语句。Connection conn = null;
Statement stmt = null;
ResultSet rs = null;conn = KDBConnect.getConnection();
CallableStatement proc = null; 
<%
proc = conn.prepareCall("{call QUERY_BBS_LIST_TJRT_VIEW () }"); proc.execute(); 
rs = (ResultSet) proc.getResultSet(); 
num = 0;
while (rs.next()) { 
num++;
String id = rs.getString("id");
String bt = rs.getString("bt");
} if(proc != null)
{
proc.close();
proc = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
proc = conn.prepareCall("{call QUERY_BBS_LIST_TJ_VIEW () }"); proc.execute(); 
rs = (ResultSet) proc.getResultSet(); 
num = 0;
while (rs.next()) { 
num++;
String id = rs.getString("id");
String bt = rs.getString("bt");
} if(proc != null)
{
proc.close();
proc = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
%><%
KDBConnect.closeConnect(conn, stmt);
%>