JSP Bug

2017年06月16日 陈鑫杰

bug

摘要: 记一次 Tomcat 页面打开问题处理

关键信息

The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

处理方案

由于 JSP 文件太大。

删除部分空行后解决。

建议页面优化,减少文件大小。

详细信息

  ���� 16, 2017 3:05:48 ���� org.apache.catalina.core.StandardWrapperValve invoke
  ����: Servlet.service() for servlet [dispatcher] in context with path [] threw exception [Unable to compile class for JSP:

  An error occurred at line: [58] in the generated java file: [C:\Users\admin\AppData\Local\Temp\work\Tomcat\localhost\_\org\apache\jsp\WEB_002dINF\jsp\som\sale\*_jsp.java]
  The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

  Stacktrace:] with root cause
  org.apache.jasper.JasperException: Unable to compile class for JSP:

  An error occurred at line: [58] in the generated java file: [C:\Users\admin\AppData\Local\Temp\work\Tomcat\localhost\_\org\apache\jsp\WEB_002dINF\jsp\som\sale\payList_jsp.java]
  The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

  Stacktrace:
  	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
  	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
  	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
  	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
  	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
  	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
  	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
  	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
  	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
  	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
  	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
  	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
  	at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)
  	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
  	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)
  	at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)
  	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)
  	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
  	at com.taobao.tomcat.valves.ContextLoadFilterValve$FilterChainAdapter.doFilter(ContextLoadFilterValve.java:191)
  	at com.taobao.eagleeye.EagleEyeFilter.doFilter(EagleEyeFilter.java:81)
  	at com.taobao.tomcat.valves.ContextLoadFilterValve.invoke(ContextLoadFilterValve.java:150)
  	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
  	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1080)
  	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
  	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  	at java.lang.Thread.run(Unknown Source)

(转载本站文章请注明作者和出处 FoamValue – www.foamvalue.com ——=== 访问 404页面 寻找遗失儿童。 ===——