一段程序运行后连server都给down了

lgzivi 2006-04-20 01:50:39
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里的,请问是哪里的问题?
...全文
225 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lydong 2006-04-20
  • 打赏
  • 举报
回复
"jdk1。4"!
ibm jdk/jre?如果不是,是有问题的.was5.0支持ibm jre1.3.1下编译的类。
bluemac 2006-04-20
  • 打赏
  • 举报
回复
最好先检查一下server1的日志,不然很难猜出为什么down了,光看代码不象有什么问题。

2,633

社区成员

发帖
与我相关
我的任务
社区描述
WebSphere 是 IBM 的软件平台。它包含了编写、运行和监视全天候的工业强度的随需应变 Web 应用程序和跨平台、跨产品解决方案所需要的整个中间件基础设施,如服务器、服务和工具。
社区管理员
  • WebSphere社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧