Or of course you could be using a Vector ... or something else that extends AbstractList and a call to (Iterator).next() is causing the problem.
Too many late nights. Rgds Duncan On 7/18/07, Lyallex <[EMAIL PROTECTED]> wrote:
From the API docs public class NoSuchElementException extends RuntimeException Thrown by the nextElement method of an Enumeration to indicate that there are no more elements in the enumeration. The line number in the trace is from the generated code and bears no relation to line numbers in the jsp, afaik they will rarely if ever point to the same thing. I often find that these line numbers don't always point to where he problem really is (in the generated code). Look around the area of the line number (above usually), also, look at commentList.jsp, are you using an Enumeration ? Maybe you are trying to get nextElement() when there are no more elements to get. Rgds Duncan On 7/18/07, Sam Klin <[EMAIL PROTECTED]> wrote: > I am trying to figure out how to debug the following exception that's thrown in one of my jsps. The line number from the exception trace is 259. If this is a line number from the underlying jsp then the line is: <%@ include file="inc/footer.jsp" %> this is also the last line in the jsp. If, on the, other hand the line is from the resulting servlet code the line is: out.write("channel =\"460022903\";\n"); This also makes no sense. Here's the complete stack trace: > > java.util.NoSuchElementException > at java.util.AbstractList$Itr.next(AbstractList.java:427) > at org.apache.jsp.commentList_jsp._jspService(org.apache.jsp.commentList_jsp:259) > 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:322) > 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.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) > 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:81) > 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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) > at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) > at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) > at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > 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:307) > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) > at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) > at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) >
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]