0 Replies Latest reply on Nov 8, 2017 3:50 AM by rkhemka

    Jboss 7.0.0 EAP + JBWEB004061: An error occurred at line: 152 in the generated java file. The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

    rkhemka Newbie

      The below error is occurring at runtime while executing the JSP. Though this JSP works perfectly fine in Jboss 5.1 EAP but is giving size limit issue with Jboss 7.0.0 EAP. I have tried adding the JSP-CONFIG in Jboss Standalone.xml

      Added lines <jsp-config trim-spaces="true" tag-pooling="false" mapped-file="false" generate-strings-as-char-arrays="true"/>

      but still gives the same error.

       

      Exception trace is below

      1. Caused by: org.apache.tiles.impl.CannotRenderException:
        JSPException including path
        '/WEB-INF/jsp/tax/core/correspondence/noticeRequest.jsp'.

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:692)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)

                      at
      org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)

                      at
      org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)

                      at
      org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)

                      at
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)

                      at
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)

                      at
      com.hcl.iGovern.common.spring.servlet.UIDispatcherServlet.doService(UIDispatcherServlet.java:38)

                      at
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

                      ... 67
      more

      Caused by: org.apache.tiles.util.TilesIOException:
      JSPException including path '/WEB-INF/jsp/tax/core/correspondence/noticeRequest.jsp'.

                      at
      org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:243)

                      at
      org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:105)

                      at
      org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96)

                      at
      org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)

                      at
      org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

                      at
      org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76)

                      at
      org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336)

                      at
      org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210)

                      at
      org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126)

                      at
      org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311)

                      at
      org.apache.jsp.WEB_002dINF.tiles.layouts.simpleLayoutHeaderWithMenu_jsp._jspx_meth_tiles_005finsertAttribute_005f3(simpleLayoutHeaderWithMenu_jsp.java:471)

                      at
      org.apache.jsp.WEB_002dINF.tiles.layouts.simpleLayoutHeaderWithMenu_jsp._jspService(simpleLayoutHeaderWithMenu_jsp.java:226)

                      at
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                      at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                      at
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)

                      at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:402)

                      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:346)

                      at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                      at
      io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                      at
      io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                      at
      io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)

                      at
      io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                      at
      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at
      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at
      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at
      io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:266)

                      at
      io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:201)

                      at
      io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:202)

                      at
      io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:109)

                      at
      org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:241)

                      at
      org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)

                      at
      org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)

                      at
      org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)

                      at
      org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)

                      ... 77
      more

      Caused by: org.apache.jasper.JasperException: JBWEB004062:
      Unable to compile class for JSP:

       

      JBWEB004061: An error occurred at line: 152 in the generated
      java file The code of method _jspService(HttpServletRequest, HttpServletResponse)
      is exceeding the 65535 bytes limit

       

      Stacktrace:

                      at
      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95)

                      at
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)

                      at
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:449)

                      at
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:359)

                      at
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)

                      at
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)

                      at
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652)

                      at
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)

                      at
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:402)

                      at
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:346)

                      at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:790)