在尝试访问应用程序时,我们在Tomcat中收到以下错误。错误详情如下。
org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing java.lang.NullPointerException
at com.ify.sabs.limi.app.servlets.LoginValidate.doPost(LoginValidate.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
当用户尝试登录Web应用程序时,会出现上述问题。我们正在使用tomcat 6.0.18.0并收到上述错误。
我也试过通过eclipse运行它并得到以下错误
Jun 29, 2015 4:45:08 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.AbstractMethodError:org.apache.catalina.authenticator.AuthenticatorBase.authenticate(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;Lorg/apache/catalina/deploy/LoginConfig;)Z
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
答案 0 :(得分:0)
感谢所有问题得到解决。上述问题是因为应用程序无法连接到数据库,因为应用程序无法检测属性文件,因为属性文件的路径中有空格字符。修正了相同问题并解决了问题。