java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911 at com.sun.faces.renderkit.ServerSideStateHelper.getState(ServerSideStateHelper.java:266 at com.sun.faces.renderkit.ResponseStateManagerImpl.getState(ResponseStateManagerImpl.java:100 at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:227 at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188 at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123 at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453 at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at org.omnifaces.viewhandler.RestorableViewHandler.restoreView(RestorableViewHandler.java:66 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101 at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593 at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161 at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231 at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317 at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860 at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757 at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056 at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229 at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90 at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79 at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54 at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59 at com.sun.grizzly.ContextTask.run(ContextTask.java:71 at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532 at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513

Stack Overflow | Thomas Schmidt | 9 months 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

    Submitting form in iframe in IE11 throws java.lang.StringIndexOutOfBoundsException while restoring JSF state

    Stack Overflow | 9 months ago | Thomas Schmidt
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911 at com.sun.faces.renderkit.ServerSideStateHelper.getState(ServerSideStateHelper.java:266 at com.sun.faces.renderkit.ResponseStateManagerImpl.getState(ResponseStateManagerImpl.java:100 at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:227 at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188 at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123 at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453 at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at org.omnifaces.viewhandler.RestorableViewHandler.restoreView(RestorableViewHandler.java:66 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101 at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593 at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161 at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231 at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317 at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860 at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757 at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056 at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229 at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90 at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79 at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54 at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59 at com.sun.grizzly.ContextTask.run(ContextTask.java:71 at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532 at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513
  2. 0

    How to retrieve list of indices in 0.19.11

    Google Groups | 4 years ago | barak
    org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution at org.elasticsearch.action.support.AdapterActionFuture.rethrowExecutionException(AdapterActionFuture.java:88) at
  3. 0

    solr-user.lucene.apache.org - String index out of range exception from Spell check - msg#00989 - Recent Discussion OSDir.com

    osdir.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:789) at java.lang.StringBuilder.replace(StringBuilder.java:266) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:235) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:92) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:230) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:197) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:226) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    solr-user.lucene.apache.org - RE: String index out of range exception from Spell check - msg#01004 - Recent Discussion OSDir.com

    osdir.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:789) at java.lang.StringBuilder.replace(StringBuilder.java:266) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:235) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:92) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:230) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:197) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:226) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
  6. 0

    java Applet

    Oracle Community | 2 decades ago | 807556
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Compiled Code) at ConnectionMan.run(Compiled Code)

    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.StringIndexOutOfBoundsException

      String index out of range: -1 at java.lang.String.substring(String.java:1911 at com.sun.faces.renderkit.ServerSideStateHelper.getState(ServerSideStateHelper.java:266 at com.sun.faces.renderkit.ResponseStateManagerImpl.getState(ResponseStateManagerImpl.java:100 at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:227 at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188 at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123 at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453 at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at org.omnifaces.viewhandler.RestorableViewHandler.restoreView(RestorableViewHandler.java:66 at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:303 at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101 at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593 at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161 at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231 at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317 at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860 at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757 at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056 at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229 at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90 at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79 at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54 at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59 at com.sun.grizzly.ContextTask.run(ContextTask.java:71 at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532 at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513

      at java.lang.Thread.run()
    2. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame