public boolean fromDB(){
boolean flag=false;
String sql = "select * from ajax_chat_user where id = "+this.id;
ResultSet rs =null;
Statement stmt=null;
Connection con = null;
try{
rs = JdbcUtil.executeQuery(sql);
rs.last();
if(rs.getRow()==1){
rs.first();
this.name=rs.getString(2);
this.addedtime=rs.getTimestamp(3);
flag=true;
}

}catch(Exception e){
e.printStackTrace();
}finally{
try{
if(rs!=null) {rs.close();stmt=rs.getStatement();}
if(stmt!=null) {stmt.close();con=stmt.getConnection();}
if(con!=null) con.close();
}catch(Exception e){
e.printStackTrace();
}
}
return flag;
}
测试的时候老是到rs.getStatement().这句报错,[Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
        数据库是sql server 2000;