一段程序运行后连server都给down了
try {
conn = GetDataConnection.getConnection();//取得数据库的连接
stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()){
HashMap map = new HashMap();
map.put("id",rs.getString("id"));
map.put("title",rs.getString("TITLE"));
map.put("senderdepartment",rs.getString("senderdepartment"));
map.put("sendtime",rs.getString("sendtime"));
map.put("status",rs.getString("status"));
map.put("modelName",rs.getString("modelName"));
map.put("countApply",rs.getString("countApply"));
map.put("countArea",rs.getString("countArea"));;
list.add(map);
}
stmt.close();
}
catch (Exception e) {
throw new OurException(e.getMessage());
}
finally {
try {
if (null!=conn)
conn.close();
}
catch (Exception e) {
throw new OurException("Close connection exception: " + e.getMessage());
}
}
这段代码一运行,server1就down了,请问为什么。
我到时在jdk1。4下编译的,把class直接拿到was5。0里的,请问是哪里的问题?