javax.servlet.jsp.JspTagException: 'end' < 0

Atlassian JIRA | Ming Giet Chong [Atlassian] | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    It happens for Git and clearcase scm currently. Steps to reproduce the issue: # Add a git repository # Go to Source tab then click on the {{Annotated}} link for a file. # You'll see the error, see the attached screen shot Error from the log: {code:none} 2010-09-01 15:28:29,281 INFO [btpool0-12] fisheye.app ActionDispatcherServlet-doGet - Servlet Exception, rootcause= javax.servlet.jsp.JspTagException: 'end' < 0 at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:518) at org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:91) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_1(fileAnnotation_jsp.java:514) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_0(fileAnnotation_jsp.java:418) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspService(fileAnnotation_jsp.java:121) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_otherwise_0(fileViewContentsHtmlResp_jsp.java:529) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_1(fileViewContentsHtmlResp_jsp.java:471) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_when_0(fileViewContentsHtmlResp_jsp.java:438) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_0(fileViewContentsHtmlResp_jsp.java:401) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspService(fileViewContentsHtmlResp_jsp.java:122) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1208) {code}

    Atlassian JIRA | 6 years ago | Ming Giet Chong [Atlassian]
    javax.servlet.jsp.JspTagException: 'end' < 0
  2. 0

    It happens for Git and clearcase scm currently. Steps to reproduce the issue: # Add a git repository # Go to Source tab then click on the {{Annotated}} link for a file. # You'll see the error, see the attached screen shot Error from the log: {code:none} 2010-09-01 15:28:29,281 INFO [btpool0-12] fisheye.app ActionDispatcherServlet-doGet - Servlet Exception, rootcause= javax.servlet.jsp.JspTagException: 'end' < 0 at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:518) at org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:91) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_1(fileAnnotation_jsp.java:514) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_0(fileAnnotation_jsp.java:418) at org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspService(fileAnnotation_jsp.java:121) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_otherwise_0(fileViewContentsHtmlResp_jsp.java:529) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_1(fileViewContentsHtmlResp_jsp.java:471) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_when_0(fileViewContentsHtmlResp_jsp.java:438) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_0(fileViewContentsHtmlResp_jsp.java:401) at org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspService(fileViewContentsHtmlResp_jsp.java:122) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1208) {code}

    Atlassian JIRA | 6 years ago | Ming Giet Chong [Atlassian]
    javax.servlet.jsp.JspTagException: 'end' < 0
  3. 0

    When a feed is empty, he portlet throws an exception. org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=143, channelSubscribeId=u10196l1n9, portletApplicationId=/portal/NewsReaderPortlet, portletName=single-feed-news, user=tongb] at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:385) at org.jasig.portal.channels.portlet.CSpringPortletAdaptor.renderCharacters(CSpringPortletAdaptor.java:217) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:631) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy193.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.channels.portlet.PortletDispatchException: The portlet window 'PortletWindowImpl[portletWindowId=143_u10196l1n9_38.u10196l1n9,contextPath=/portal/NewsReaderPortlet,portletName=single-feed-news,windowState=normal,portletMode=view,expirationCache=<null>,requestParameters={},delegationParent=<null>]' threw an exception while executing render. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRender(PortletRendererImpl.java:236) at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:381) ... 19 more Caused by: javax.portlet.PortletException at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:113) at org.springframework.web.portlet.DispatcherPortlet.doRender(DispatcherPortlet.java:1140) at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1094) at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:832) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:483) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:453) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208) at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139) Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: 'end' < 0 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspService(viewSingleFeed_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) Caused by: javax.servlet.jsp.JspTagException: 'end' < 0 at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:450) at org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:53) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fforEach_005f1(viewSingleFeed_jsp.java:512) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fotherwise_005f0(viewSingleFeed_jsp.java:481) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fchoose_005f0(viewSingleFeed_jsp.java:366) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspService(viewSingleFeed_jsp.java:191) ... 63 more I have a patch from Shashank Balasubramanian that I've tested and will apply.

    Apereo Issues | 6 years ago | Drew Wills
    org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=143, channelSubscribeId=u10196l1n9, portletApplicationId=/portal/NewsReaderPortlet, portletName=single-feed-news, user=tongb]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When a feed is empty, he portlet throws an exception. org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=143, channelSubscribeId=u10196l1n9, portletApplicationId=/portal/NewsReaderPortlet, portletName=single-feed-news, user=tongb] at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:385) at org.jasig.portal.channels.portlet.CSpringPortletAdaptor.renderCharacters(CSpringPortletAdaptor.java:217) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:631) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy193.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.channels.portlet.PortletDispatchException: The portlet window 'PortletWindowImpl[portletWindowId=143_u10196l1n9_38.u10196l1n9,contextPath=/portal/NewsReaderPortlet,portletName=single-feed-news,windowState=normal,portletMode=view,expirationCache=<null>,requestParameters={},delegationParent=<null>]' threw an exception while executing render. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRender(PortletRendererImpl.java:236) at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:381) ... 19 more Caused by: javax.portlet.PortletException at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:113) at org.springframework.web.portlet.DispatcherPortlet.doRender(DispatcherPortlet.java:1140) at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1094) at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:832) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:483) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:453) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208) at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139) Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: 'end' < 0 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspService(viewSingleFeed_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) Caused by: javax.servlet.jsp.JspTagException: 'end' < 0 at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:450) at org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:53) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fforEach_005f1(viewSingleFeed_jsp.java:512) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fotherwise_005f0(viewSingleFeed_jsp.java:481) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspx_meth_c_005fchoose_005f0(viewSingleFeed_jsp.java:366) at org.apache.jsp.WEB_002dINF.jsp.viewSingleFeed_jsp._jspService(viewSingleFeed_jsp.java:191) ... 63 more I have a patch from Shashank Balasubramanian that I've tested and will apply.

    Apereo Issues | 6 years ago | Drew Wills
    org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=143, channelSubscribeId=u10196l1n9, portletApplicationId=/portal/NewsReaderPortlet, portletName=single-feed-news, user=tongb]

    Root Cause Analysis

    1. javax.servlet.jsp.JspTagException

      'end' < 0

      at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd()
    2. JSP JSTL
      LoopTagSupport.validateEnd
      1. javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:518)
      1 frame
    3. JSTL
      ForEachTag.setEnd
      1. org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:91)
      1 frame
    4. org.apache.jsp
      fileAnnotation_jsp._jspService
      1. org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_1(fileAnnotation_jsp.java:514)
      2. org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspx_meth_c_forEach_0(fileAnnotation_jsp.java:418)
      3. org.apache.jsp.WEB_002dINF.jsp.file.fileAnnotation_jsp._jspService(fileAnnotation_jsp.java:121)
      3 frames
    5. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      1 frame
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    7. Jetty Server
      Dispatcher.include
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      7. org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
      7 frames
    8. GWT dev
      JspRuntimeLibrary.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013)
      1 frame
    9. org.apache.jsp
      fileViewContentsHtmlResp_jsp._jspService
      1. org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_otherwise_0(fileViewContentsHtmlResp_jsp.java:529)
      2. org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_1(fileViewContentsHtmlResp_jsp.java:471)
      3. org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_when_0(fileViewContentsHtmlResp_jsp.java:438)
      4. org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspx_meth_c_choose_0(fileViewContentsHtmlResp_jsp.java:401)
      5. org.apache.jsp.WEB_002dINF.jsp.file.fileViewContentsHtmlResp_jsp._jspService(fileViewContentsHtmlResp_jsp.java:122)
      5 frames
    10. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      1 frame
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    12. Jetty Server
      ServletHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      2. org.mortbay.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1208)
      2 frames