javax.servlet.ServletException错误分析
环境:eclipse3.4 tomcat4.1 jdk1.4
访问某些jsp文件出现如下错误:
这次错误的原因,与之前差不多,也可以说是jdk的版本问题。
我比较喜欢高版本的东西,开发环境基本都是最新版本,这次正是因为高版本制造这个错误,把eclipse的版本下降版本,或是升高tomcat的版本可以消除这个异常。
看来也不要一味追求高版本的东西,高版本的东西固然给我们开发者提供不少简便的地方,但是也容易造成一些BUG。
出现javax.servlet.ServletException错误的时候,要考虑是否是jdk的版本给我们带来的“便利”^_^
访问某些jsp文件出现如下错误:
javax.servlet.ServletException: org
/
apache
/
jsp
/
view_jsp (Unsupported major.minor version
50.0
)
at ep.si.ComponentAction.execute(ComponentAction.java: 134 )
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java: 484 )
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274 )
at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1482 )
at ep.struts.ActionServlet.process(ActionServlet.java: 38 )
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 525 )
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 760 )
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853 )
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 247 )
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 193 )
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 256 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2415 )
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 180 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java: 171 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 641 )
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 172 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 641 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 174 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java: 223 )
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 594 )
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java: 392 )
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 565 )
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: 619 )
at java.lang.Thread.run(Thread.java: 536 )
之前blog贴出来这样一篇文章 javax.servlet.ServletException: [HTTP:101249] ,之前错误的原因是jdk版本的问题,换句话说是编译的class文件的版本问题。
at ep.si.ComponentAction.execute(ComponentAction.java: 134 )
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java: 484 )
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274 )
at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1482 )
at ep.struts.ActionServlet.process(ActionServlet.java: 38 )
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 525 )
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 760 )
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853 )
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 247 )
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 193 )
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 256 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2415 )
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 180 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java: 171 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 641 )
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 172 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 641 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 174 )
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java: 643 )
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480 )
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 995 )
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java: 223 )
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 594 )
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java: 392 )
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 565 )
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: 619 )
at java.lang.Thread.run(Thread.java: 536 )
这次错误的原因,与之前差不多,也可以说是jdk的版本问题。
我比较喜欢高版本的东西,开发环境基本都是最新版本,这次正是因为高版本制造这个错误,把eclipse的版本下降版本,或是升高tomcat的版本可以消除这个异常。
看来也不要一味追求高版本的东西,高版本的东西固然给我们开发者提供不少简便的地方,但是也容易造成一些BUG。
出现javax.servlet.ServletException错误的时候,要考虑是否是jdk的版本给我们带来的“便利”^_^