java.lang.IndexOutOfBoundsException: Index: 4, Size: 4

XWiki.org JIRA | Jean-Vincent Drean | 8 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

    ServletException: Index: 0, Size: 0 (JSF forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    [SAK-6692] IndexOutOfBoundsException while authoring assessment - Sakai

    sakaiproject.org | 1 year ago
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Setup Adempiere Error or Bug ?

    adempiere | 10 years ago | nychen
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  5. 0

    After verifying fix of HER-1275, tried removing the added scope rule in an override sheet. Got ugly browser exception; in console was: INFO: org.archive.settings.jmx.JMXSheetManagerImpl.remove(xavvy, root:scope:rules:7) java.lang.IndexOutOfBoundsException: Index: 7, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.remove(ArrayList.java:389) at org.archive.settings.SettingsList.remove(SettingsList.java:233) at org.archive.settings.path.PathChanger.remove(PathChanger.java:459) at org.archive.settings.jmx.JMXSheetManagerImpl.remove(JMXSheetManagerImpl.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.archive.openmbeans.annotations.Bean.invoke(Bean.java:236) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:158) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) at $Proxy11.remove(Unknown Source) at org.archive.crawler.webui.Sheets.saveSingleSheet(Sheets.java:321) at org.apache.jsp.sheets.do_005fsave_005fsingle_005fsheet_jsp._jspService(do_005fsave_005fsingle_005fsheet_jsp.java:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) 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:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:79) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Feb 5, 2008 8:04:47 AM org.archive.settings.jmx.LoggingDynamicMBean dealWithException Clearly, it's trying to do the remove at the combined index (7), rather than the override sheet's local index (0?)

    JIRA | 9 years ago | Gordon Mohr
    java.lang.IndexOutOfBoundsException: Index: 7, Size: 1

  1. eti22 12 times, last 2 months ago
  2. filpgame 2 times, last 3 months ago
  3. ajinkya_w 580 times, last 6 months ago
  4. rlovtangen 2 times, last 6 months ago
  5. davidvanlaatum 1 times, last 7 months ago
3 more registered users
5 unregistered visitors
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: 4, Size: 4

    at java.util.ArrayList.RangeCheck()
  2. Java RT
    ArrayList.remove
    1. java.util.ArrayList.RangeCheck(ArrayList.java:546)
    2. java.util.ArrayList.remove(ArrayList.java:389)
    2 frames
  3. org.xwiki.rendering
    AbstractBlock.replaceChild
    1. org.xwiki.rendering.block.AbstractBlock.replaceChild(AbstractBlock.java:153)
    1 frame
  4. com.xpn.xwiki
    XWikiAction.execute
    1. com.xpn.xwiki.doc.XWikiDocument.updateDocumentSection(XWikiDocument.java:4808)
    2. com.xpn.xwiki.web.SaveAction.save(SaveAction.java:133)
    3. com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
    4. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
    5. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
    5 frames