• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Index Out of Bounds Exception

 
J Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this exception in my log. Could anybody please tell me the cause and the possible fix for this?

ava.lang.IndexOutOfBoundsException: Index: 1, Size: 1
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at com.caucho.jsp.QPageContext.handlePageException
(QPageContext.java:666)
at _jsp._Report__jsp._jspService
(_Report__jsp.java:1635)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
at com.caucho.server.http.FilterChainPage.doFilter
(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service
(CacheInvocation.java:135)
at com.caucho.server.http.QRequestDispatcher.forward
(QRequestDispatcher.java:222)
at com.caucho.server.http.QRequestDispatcher.forward
(QRequestDispatcher.java:103)
at com.caucho.server.http.QRequestDispatcher.forward
(OutputTranslator.java:45)
at time.TimeManagement.report
(TimeManagement.java:964)
at time.TimeManagement.handle
(TimeManagement.java:129)
at time.servlet.TimeServlet.service(TimeServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter
(FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service
(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest
(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection
(HttpRequest.java:164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this line:
at _jsp._Report__jsp._jspService (_Report__jsp.java:1635)
in your generated servlet source.

ArrayOutOfBoundsException is the result of an attempt to reference an index that is higher than the number of elements in the given array.
 
J Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have checked this line and there seems to be really no problem. The reports generates just fine and I got this exception only once. It works well at other times.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!