黑夜的顾城
2018-08-04 07:29
采纳率: 50%
浏览 1.8k
已采纳

求大神帮忙:jsp报500错误

org.apache.jasper.JasperException: An exception occurred processing JSP page /BMS902A2.jsp at line 29

26: {
27: //w_conn = X60getConnection(hkalsip,hkalsdb,hkalslogin,hkalspwd);
28: w_conn = X60getConnection(dgalsip,dgalsdb,dgalslogin,dgalspwd);
29: w_stmt = w_conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
30:

31: w_rs = X61executeQuery(w_stmt, "SELECT fa_login FROM ta_user WHERE fa_login='" + p_login + "'");
32: if (!w_rs.next())

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:574)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.freestyle.common.servletsupport.RequestFilter.doFilter(RequestFilter.java:36)
root cause

java.lang.NullPointerException
org.apache.jsp.BMS902A2_jsp.createUserForALS(BMS902A2_jsp.java:3287)
org.apache.jsp.BMS902A2_jsp._jspService(BMS902A2_jsp.java:4016)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.freestyle.common.servletsupport.RequestFilter.doFilter(RequestFilter.java:36)

自己检查后,不清楚哪里错误,请大神帮忙!
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

5条回答 默认 最新

  • 黑夜的顾城 2018-08-29 03:31
    最佳回答

    已经解决:(原来是sql中含有字段不存在表中),谢谢大家!

    已采纳该答案
    评论
    解决 无用
    打赏 举报
查看更多回答(4条)

相关推荐 更多相似问题