错误Servlet.service() for servlet dispatcherServlet threw exception
来源:互联网 发布:simg2img linux 编辑:程序博客网 时间:2024/06/05 04:13
错误Servlet.service() for servlet dispatcherServlet threw exception
在使用maven开发项目时,有时会遇到如下错误: 严重: Servlet.service() for servlet
dispatcherServlet threw exception java.lang.AbstractMethodError:
org.apache.catalina.connector.ResponseFacade.getStatus()I at
org.springframework.web.servlet.FrameworkServlet.publishRequestHandledEvent(FrameworkServlet.java:1068)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1001)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
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:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at
java.lang.Thread.run(Thread.java:619)
在网上找了许多解决方法,都未能解决,最后发现是maven项目的配置出现了问题,于是重头开始配置,终于解决了问题。
maven配置教程
=========================================
更新:
错误的原因应该是spring包的版本问题,我原来使用的包是4.1.x,后来换成了4.0.7问题就解决了。
- 错误Servlet.service() for servlet dispatcherServlet threw exception
- Servlet.service() for servlet jsp threw exception错误
- Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet default threw exception
- Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet default threw exception
- Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet dispatcherServlet threw exception java.lang.IllegalStateException:
- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Filter ex
- HTTP Status 401 - Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception
- 严重: Servlet.service() for servlet jsp threw exception
- Servlet.service() for servlet jsp threw exception java.lang.NullPointerException
- 严重: Servlet.service() for servlet jsp threw exception
- 文档排序模型--查询似然Query Likelihood
- pandas画柱状图,线形图
- CSS如何设置多重边框
- Hadoop(5)-HA(High Available)高可用性机制
- 领导者如何打断下属工作计划
- 错误Servlet.service() for servlet dispatcherServlet threw exception
- 残差网络resnet学习
- 遗传算法解决TSP问题(c++实现)
- 网上搜索的 开放的接口 API
- 【s5p4418嵌入式学习】系统编译脚本分析02
- bzoj4275[ONTAK2015]Badania naukowe DP
- hdu1241 求联通快(java)
- 图片上传随笔
- IO流简单用法