java.lang.IndexOutOfBoundsException: Index: 20

Atlassian JIRA | Charles Miller | 8 years ago
  1. 0
  2. 0
  3. 0

    Example that makes it fail: {noformat} <h1 id="HWelcometoyourwiki"><span>Welcome to your wiki</span></h1><p>Welcome to your [second generation wiki&gt;<span class="wikiexternallink"><a class="wikimodel-freestanding" href="http://www.xwiki.org/">http://www.xwiki.org/</a></span>]! <br>It is an online, shared workspace that will allow you to collaborate effectively with others. You can use it for many purposes:</p><ul><li>Project Management</li><li>Collaborative Writing</li><li>Efficient Document Sharing</li><li>Knowledge Management</li></ul><p>... the only limit is your imagination!</p><h2 id="HHowtostart"><span>How to start</span></h2><p>Maybe you are used to work with a wiki... and maybe not. If you would like to get used to the basics of wiki edition, we have created a [Sandbox space&gt;Sandbox.WebHome] on this wiki. This space is meant to let you learn by yourself ;-)</p><p>There are other steps that you may want to go through, such as :</p><ul><li>Configuring your wiki by clicking on the 'Administration' link at the top right.</li><li>Changing the layout and menu contents by using the [Panel Wizard&gt;Panels.PanelWizard?forceLeftPanels=1&amp;amp;forceRightPanels=1]</li><li>Modifying this page, for example stating what your wiki is all about (You just have to click on the Edit button at the top left of this page).</li><li>Inviting your friends, family or co-workers to enjoy collaboration made easy.</li><li>Writing your documentation, sharing ideas, creating different spaces and organizing them the way you want.</li><li>And then [write some blog posts&gt;Blog.WebHome] in order to summarize your work.</li></ul><p>For more information you can visit [the documentation on xwiki.org&gt;<span class="wikiexternallink"><a class="wikimodel-freestanding" href="http://www.xwiki.org/xwiki/bin/view/Main/Documentation">http://www.xwiki.org/xwiki/bin/view/Main/Documentation</a></span>].</p><p>This XWiki is yours, we hope you'll enjoy it ...</p><p>Congratulations,<br><br>The XWiki Team</p> {noformat} Error I get: {noformat} 14:50:24.822 WARN!! [P1-19] org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:1151) >26> Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.xpn.xwiki.wysiwyg.client.WysiwygService.cleanHTML(java.lang.String)' threw an unexpected exception: java.lang.IndexOutOfBoundsException: Index: 23 at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:94) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: java.lang.IndexOutOfBoundsException: Index: 23 at java.util.AbstractList.listIterator(AbstractList.java:390) at org.htmlcleaner.HtmlCleaner.closeSnippet(Unknown Source) at org.htmlcleaner.HtmlCleaner.makeTree(Unknown Source) at org.htmlcleaner.HtmlTokenizer.addToken(Unknown Source) at org.htmlcleaner.HtmlTokenizer.tagStart(Unknown Source) at org.htmlcleaner.HtmlTokenizer.start(Unknown Source) at org.htmlcleaner.HtmlCleaner.clean(Unknown Source) at org.htmlcleaner.HtmlCleaner.clean(Unknown Source) at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:98) at com.xpn.xwiki.wysiwyg.server.DefaultWysiwygService.cleanHTML(DefaultWysiwygService.java:88) 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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) ... 24 more {noformat}

    XWiki.org JIRA | 8 years ago | Vincent Massol
    com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.xpn.xwiki.wysiwyg.client.WysiwygService.cleanHTML(java.lang.String)' threw an unexpected exception: java.lang.IndexOutOfBoundsException: Index: 23
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to access JSystem Reporter server

    jsystemtest | 6 years ago | roni_el
    java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
  6. 0

    AnimationBenchmark

    GitHub | 4 years ago | Niffy
    java.lang.IndexOutOfBoundsException: index=20, limit=20

    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: 20

      at java.util.AbstractList.listIterator()
    2. Java RT
      AbstractList.listIterator
      1. java.util.AbstractList.listIterator(AbstractList.java:389)
      1 frame
    3. com.atlassian.confluence
      SearchSiteAction.execute
      1. com.atlassian.confluence.search.actions.SearchBean.search(SearchBean.java:95)
      2. com.atlassian.confluence.search.actions.SearchBean.search(SearchBean.java:65)
      3. com.atlassian.confluence.search.actions.SearchSiteAction.execute(SearchSiteAction.java:131)
      3 frames
    4. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
      1 frame
    5. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame
    6. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    7. com.opensymphony.xwork
      DefaultWorkflowInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)
      1 frame
    8. com.atlassian.confluence
      ConfluenceWorkflowInterceptor.intercept
      1. com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39)
      1 frame
    9. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame