首页上一页 1 下一页尾页 3 条记录 1/1页
第一章明日企业门户网p30后错误500
发表在JSP答疑区
2020-03-20 悬赏:1 学分
是否精华
是
否
版块置顶:
是
否
HTTP Status 500 - An exception occurred processing JSP page /admin/login.jsp at line 12
type Exception report
message An exception occurred processing JSP page /admin/login.jsp at line 12
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /admin/login.jsp at line 12 9: out.println("<script>alert('"+User+"');</script>"); 10: out.println("<script>alert('"+Pwd+"');</script>"); 11: Login login = new Login(); //鏂板缓鐧诲綍绫籐ogin 12: boolean isOK=login.LoginCheck(User,Pwd); //璋冪敤鏂规硶LoginCheck 13: if(isOK){ 14: //濡傛灉isOK=true,璇存槑楠岃瘉鎴愬姛 15: out.println("<SCRIPT LANGUAGE='JavaScript'>alert('鐧诲綍鎴愬姛锛�');location.href='news.jsp';</SCRIPT>"); 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)
root cause
java.lang.NullPointerException mingrisoft.Function.CheckLogin(Function.java:21) mingrisoft.Login.LoginCheck(Login.java:28) org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:125) 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)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.36 logs.