2 qq 27294177 qq_27294177 于 2016.09.12 11:47 提问

空指针异常(JspServletWrapper.java:538)

2016-09-12 11:32:58.673 CST [INFO] [AWE] **********************************InitAWEServlet Success*********************************
2016-09-12 11:32:58.673 CST [INFO]
2016-9-12 11:32:58 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2016-9-12 11:32:58 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2016-9-12 11:32:58 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/63 config=null
2016-9-12 11:32:58 org.apache.catalina.startup.Catalina start
信息: Server startup in 3857 ms
org.apache.jasper.JasperException: java.lang.NullPointerException
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:538)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.amarsoft.awe.control.RunFilter.doFilter(RunFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.apache.jsp.AppMain.Logon_jsp._jspInit(Logon_jsp.java:118)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:164)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
... 18 more

3个回答

qq_27294177
qq_27294177   2016.09.12 14:08
已采纳

找到问题了,JspServletWrapper.java:538 这种bug一般都是api重复造成的.我纠结的原因是不知道哪个api重复!
最后项目同步了一下,发现了jsp-api 和 servelt-api重复.把两个jar包,干掉.就好了,谢谢各位

theUncle
theUncle   Rxr 2016.09.12 11:52

这里很明显了,JspServletWrapper.java:538 你的这行代码这里有空指针异常,检查下是什么问题,是不是数据库用户密码错了

theUncle
theUncle 回复qq_27294177: http://blog.csdn.net/imlmy/article/details/8187110 看下这篇
大约一年之前 回复
qq_27294177
qq_27294177 tomcat也已经清空缓存了
大约一年之前 回复
qq_27294177
qq_27294177 用户名和密码都对啊.刚开始是添加了两个jar包,报的错.现在把自定义的用户类库(包含两个jar包),删掉了,还是有这个错
大约一年之前 回复
zhuzige521888
zhuzige521888   2016.09.12 12:59

Logon_jsp貌似有问题,断点调试下看有没有空指针的。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!