HTTP Status 500 – Internal Server Error

自己在数据库输入一个数据,拿这个数据来登录,登录不成功,就出现这些问题,我是新手,刚接触这个,不是很懂,哪位大佬帮忙看一下错误,谢谢!
Type Exception Report

Message An exception occurred processing JSP page /dengluchuli.jsp at line 37

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

34: if(quanxian.equals("用户")){
35:     
36:     String sql="select * from reg where username='"+username+"' and password='"+password+"'";
37:     ResultSet rs=guanli.GetRs(sql);
38:     if(rs.next()){
39:         
40:         //session.setAttribute("bianhao",""+rs.getString("bianhao")+"");

ResultSet rs=guanli.GetRs(sql);

感觉GetRs这里面出了问题,可以try catch 看看

guanli.GetRs(sql); 这是运行sql语句吗?不是preparedStatement或statement运行的吗?

这个已经说的很明显了Message An exception occurred processing JSP page /dengluchuli.jsp at line 37一个错误发生在37行这里, ResultSet rs=guanli.GetRs(sql);这个方法面首先你看下guanli这个是个什么类库,反正我是没有见过,然后看下GetRs的方法是什么方法,最后看下sql在数据库内是否使用正常