You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2021/06/30 16:43:49 UTC

[Bug 65413] New: Error in compiled jsp with forEach loop

https://bz.apache.org/bugzilla/show_bug.cgi?id=65413

            Bug ID: 65413
           Summary: Error in compiled jsp with forEach loop
           Product: Tomcat 8
           Version: 8.5.68
          Hardware: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: neihengp@gmail.com
  Target Milestone: ----

As of release 8.5.67 we've noticed that a lot of our JSP's that use a forEach
loop won't compile and give us an error: 

n error occurred at line: [736] in the generated java file:
[/Users/Patrick.Neihengen/Library/Caches/JetBrains/IntelliJIdea2021.1/tomcat/0bd8c2a6-1c0a-4d03-801e-ca9be966847a/work/Catalina/localhost/ROOT/org/apache/jsp/WEB_002dINF/pages/admin/userAdminList_jsp.java]
_jspx_push_body_count_c_005fforEach_005f0 cannot be resolved to a variable

Stacktrace:
                at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
                at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)
                at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:545)
                at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:380)
                at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:350)
                at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
                at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)
                at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
                at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
                at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
                at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
                at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:113)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
                at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
                at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:462)
                at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:388)
                at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
                at
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:171)
                at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)
                at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
                at
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
                at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
                at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
                at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
                at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
                at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
                at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
                at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:194)
                at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)

I've noticed this: https://bz.apache.org/bugzilla/show_bug.cgi?id=65387 but it
says its fixed in version 10, not 8.  Not sure if its the same issue or not.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65413] Error in compiled jsp with forEach loop

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65413

Patrick Neihengen <ne...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Patrick Neihengen <ne...@gmail.com> ---
Suspecting it has something to do with this release note: 

Jasper

Code:  Review code used to generate Java source from JSPs and tags and remove
code found to be unnecessary. (markt)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65413] Error in compiled jsp with forEach loop

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65413

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Mark Thomas <ma...@apache.org> ---


*** This bug has been marked as a duplicate of bug 65390 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org