1 Reply Latest reply on Jan 11, 2008 7:24 AM by Ronald van Kuijk

    JSP compile issue inside a jstl loop

    Zach Legein Newbie

      I am seeing a ton of these in our logs, does any one know what this is? This file does compile but it fails sometimes? I am not sure what exactly this error message is trying to tell me.

      The section of code that it is complaining about is a jstl loop in a jsp that has two dynamic columns in a table.

      Here is that section of code.

      <c:forEach items="${programCategoryGroups}" var="programCategoryGroup" varStatus="loop">
      <c:choose>
      <c:when test="${loop.index % 2 == 0}">


      <c:choose>
      <c:when test="${lmbwebfn:contains(inquiry.programCategoryGroups, programCategoryGroup)}">

      </c:when>
      <c:otherwise>

      </c:otherwise>
      </c:choose>
      <spring:message code="${programCategoryGroup.resource.key}"/>

      <c:if test="${(loop.index + 1) == fn:length(programCategoryGroups)}">
      <c:out value="" escapeXml="false"/>
      </c:if>
      </c:when>
      <c:otherwise>

      <c:choose>
      <c:when test="${lmbwebfn:contains(inquiry.programCategoryGroups, programCategoryGroup)}">

      </c:when>
      <c:otherwise>

      </c:otherwise>
      </c:choose>
      <spring:message code="${programCategoryGroup.resource.key}"/>

      <c:out value="" escapeXml="false"/>
      </c:otherwise>
      </c:choose>
      </c:forEach>

      2007-12-06 06:55:52,877 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
      javax.servlet.jsp.JspException: ServletException in '/WEB-INF/presentations/7014/jsp/form1.jsp': Unable to compile class for JSP

      Generated servlet error:
      Duplicate field form1_jsp._jspx_fnmap_0

      Generated servlet error:
      Duplicate field form1_jsp._jspx_fnmap_0

      Generated servlet error:
      _jspx_fnmap_0 cannot be resolved

      Generated servlet error:
      _jspx_fnmap_0 cannot be resolved

      An error occurred at line: 43 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
      Generated servlet error:
      _jspx_fnmap_0 cannot be resolved

      An error occurred at line: 46 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
      Generated servlet error:
      _jspx_fnmap_0 cannot be resolved

      An error occurred at line: 52 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
      Generated servlet error:
      _jspx_fnmap_0 cannot be resolved
      at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
      at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
      at org.apache.jsp.WEB_002dINF.presentations._7014.jsp.layout_jsp._jspx_meth_tiles_insert_4(layout_jsp.java:1221)
      at org.apache.jsp.WEB_002dINF.presentations._7014.jsp.layout_jsp._jspService(layout_jsp.java:548)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243)
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1141)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:878)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:430)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
      at net.lmb.web.filter.UserProfileFilter.doFilter(UserProfileFilter.java:51)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.AbFilter.doFilter(AbFilter.java:154)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.TrafficFilter.doFilter(TrafficFilter.java:77)
      at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.VisitorFilter.doFilter(VisitorFilter.java:89)
      at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.ClientInfoFilter.doFilter(ClientInfoFilter.java:47)
      at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.LocaleFilter.doFilter(LocaleFilter.java:69)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.SessionFilter.doFilter(SessionFilter.java:54)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.PageCacheFilter.doFilter(PageCacheFilter.java:29)
      at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at net.lmb.web.filter.SecureRequestFilter.doFilter(SecureRequestFilter.java:46)
      at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
      at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
      at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)