com.gargoylesoftware.htmlunit.ScriptException: String index out of range: 3

htmlunit | franklin99 | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Exception thrown while processing JS regular expressions

    htmlunit | 7 years ago | franklin99
    com.gargoylesoftware.htmlunit.ScriptException: String index out of range: 3
  2. 0

    new task broken on windows

    GitHub | 4 years ago | aadrian
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  3. 0

    Converting to a portable file path

    Stack Overflow | 6 years ago | Lavneesh
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How should I report?

    Google Groups | 5 years ago | Michael Schmitz
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  6. 0

    GitHub comment 122#47240499

    GitHub | 3 years ago | slhad
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
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: 3

    at java.lang.String.charAt()
  2. Java RT
    Matcher.replaceAll
    1. java.lang.String.charAt(String.java:694)
    2. java.util.regex.Matcher.appendReplacement(Matcher.java:723)
    3. java.util.regex.Matcher.replaceAll(Matcher.java:823)
    3 frames
  3. HtmlUnit
    HtmlUnitRegExpProxy.action
    1. com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.doAction(HtmlUnitRegExpProxy.java:96)
    2. com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy.action(HtmlUnitRegExpProxy.java:64)
    2 frames
  4. HtmlUnit Core JS
    ContextFactory.doTopCall
    1. net.sourceforge.htmlunit.corejs.javascript.NativeString.execIdCall(NativeString.java:388)
    2. net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:129)
    3. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
    4. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    5. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    6. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
    6 frames
  5. HtmlUnit
    HtmlUnitContextFactory.doTopCall
    1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:261)
    1 frame
  6. HtmlUnit Core JS
    InterpretedFunction.call
    1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
    2. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    2 frames
  7. HtmlUnit
    JavaScriptEngine$HtmlUnitContextAction.run
    1. com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:484)
    3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:449)
    4. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
    4 frames
  8. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    2 frames
  9. HtmlUnit
    HtmlElement$2.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:456)
    2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:892)
    3. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:182)
    4. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:201)
    5. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:655)
    6. com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:888)
    6 frames
  10. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    2 frames
  11. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:893)
    2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1106)
    3. com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:189)
    4. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:421)
    5. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:297)
    6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354)
    6 frames
  12. Unknown
    HtmlUnitTest.testTemplates
    1. HtmlUnitTest.testTemplates(HtmlUnitTest.java:36)
    1 frame
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  14. JUnit
    TestClassRunner.run
    1. org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    2. org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    3. org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    4. org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    5. org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    6. org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    7. org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    8. org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    9. org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    10. org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    10 frames
  15. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
    1 frame
  16. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    5 frames