org.apache.jasper.JasperException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Apache's JIRA Issue Tracker | Patrick Jungermann | 7 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. 0

    JPos 1.6.3 , Jetty , Axis

    Google Groups | 9 years ago | bugzee
    java.lang.IllegalStateException: No Java compiler available
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

    Eclipse Bugzilla | 5 years ago | JohnBat26
    java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
  4. 0

    Twice now after Archiva 1.2-M1 has been running for a while on my laptop (including several sleep/wake cycles), I get this error when visiting the main page. The logs appear normal. Restarting the app "fixes" it. HTTP ERROR: 500 Unable to load class for JSP RequestURI=/archiva/ Caused by: org.apache.jasper.JasperException: Unable to load class for JSP at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315) 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:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) 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:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:463) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596) ... 41 more Caused by: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315) 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:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) 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:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:463) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Powered by Jetty://

    Apache's JIRA Issue Tracker | 8 years ago | Wendy Smoak
    java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 0, Size: 0

    at java.util.ArrayList.RangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.RangeCheck(Unknown Source)
    2. java.util.ArrayList.get(Unknown Source)
    2 frames
  3. Lucene Common Analyzers
    ShingleMatrixFilter.incrementToken
    1. org.apache.lucene.analysis.shingle.ShingleMatrixFilter$Matrix$1.hasNext(ShingleMatrixFilter.java:841)
    2. org.apache.lucene.analysis.shingle.ShingleMatrixFilter.produceNextToken(ShingleMatrixFilter.java:485)
    3. org.apache.lucene.analysis.shingle.ShingleMatrixFilter.incrementToken(ShingleMatrixFilter.java:372)
    3 frames
  4. Lucene
    TokenStream.next
    1. org.apache.lucene.analysis.TokenStream.next(TokenStream.java:401)
    1 frame
  5. Lucene Common Analyzers
    ShingleMatrixFilter.next
    1. org.apache.lucene.analysis.shingle.ShingleMatrixFilter.next(ShingleMatrixFilter.java:405)
    1 frame
  6. Apache Solr Core
    BufferedTokenStream.next
    1. org.apache.solr.analysis.BufferedTokenStream.read(BufferedTokenStream.java:94)
    2. org.apache.solr.analysis.BufferedTokenStream.next(BufferedTokenStream.java:80)
    2 frames
  7. org.apache.jsp
    analysis_jsp._jspService
    1. org.apache.jsp.admin.analysis_jsp.getTokens(org.apache.jsp.admin.analysis_jsp:104)
    2. org.apache.jsp.admin.analysis_jsp._jspService(org.apache.jsp.admin.analysis_jsp:681)
    2 frames
  8. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
    1 frame
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    1 frame
  10. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
    3 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    1 frame
  12. Jetty Server
    Dispatcher.forward
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
    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:712)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    7. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
    8. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    8 frames
  13. Apache Solr Core
    SolrDispatchFilter.doFilter
    1. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:264)
    1 frame
  14. Jetty Server
    SocketConnector$Connection.run
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    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:712)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    10. org.mortbay.jetty.Server.handle(Server.java:285)
    11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
    12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
    13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
    14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
    15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
    16. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    16 frames
  15. Jetty Util
    BoundedThreadPool$PoolThread.run
    1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
    1 frame