An exception occurred processing JSP page /login_do.jsp at line 13
答案:2 悬赏:60 手机版
解决时间 2021-02-18 02:04
- 提问者网友:謫仙
- 2021-02-17 21:30
10: <% <br>11: LoginService loginService = new LoginService();<br>12: String usertype = (String)request.getParameter("usertype");<br>13: String msg = loginService.login(request , session);<br>14: if (msg != null) {<br>15: %><br>16: alert('<%=msg%>');<br><br>Stacktrace:<br> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:525)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)<br> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)<br> com.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:32)<br><br>root cause <br><br>javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z<br> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:868)<br> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)<br> org.apache.jsp.login_005fdo_jsp._jspService(login_005fdo_jsp.java:107)<br> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)<br> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)<br> com.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:32)
最佳答案
- 五星知识达人网友:狂恋
- 2021-02-17 22:20
Log4j 的jar 版本不对,可能是有冲突? org.apache.log4j.Logger.isTraceEnabled 对应的方法找不到。
全部回答
- 1楼网友:我住北渡口
- 2021-02-17 23:45
java.lang.nullpointerexception:空指针异常,你是不是在要传值的时候没有给值,导致了空指针异常.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯