java.lang.StringIndexOutOfBoundsException

tip

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Found in my log file. File is attached. {code} !ENTRY com.aptana.editor.js 4 0 2012-07-04 08:49:56.502 !MESSAGE (Build 0.0.0.qualifier) [ERROR] Failed to parse file:/Users/ingo/Documents/Aptana%20Studio%203%20Workspace/new.aptana.com/public/javascripts/jquery.trace.js with JSLint !STACK 0 java.lang.StringIndexOutOfBoundsException: String index out of range: 41 at java.lang.String.charAt(String.java:686) at com.aptana.editor.js.validator.JSLintValidator$JSLint$1.run(JSLintValidator.java:291) at org.mozilla.javascript.Context.call(Context.java:489) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) at com.aptana.editor.js.validator.JSLintValidator$JSLint.getProblems(JSLintValidator.java:227) at com.aptana.editor.js.validator.JSLintValidator.parseWithLint(JSLintValidator.java:133) at com.aptana.editor.js.validator.JSLintValidator.buildFile(JSLintValidator.java:101) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:525) at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:436) at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:413) at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:307) at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:153) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
    via by Ingo Muschenetz,
  • Found in my log file. File is attached. {code} !ENTRY com.aptana.editor.js 4 0 2012-07-04 08:49:56.502 !MESSAGE (Build 0.0.0.qualifier) [ERROR] Failed to parse file:/Users/ingo/Documents/Aptana%20Studio%203%20Workspace/new.aptana.com/public/javascripts/jquery.trace.js with JSLint !STACK 0 java.lang.StringIndexOutOfBoundsException: String index out of range: 41 at java.lang.String.charAt(String.java:686) at com.aptana.editor.js.validator.JSLintValidator$JSLint$1.run(JSLintValidator.java:291) at org.mozilla.javascript.Context.call(Context.java:489) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) at com.aptana.editor.js.validator.JSLintValidator$JSLint.getProblems(JSLintValidator.java:227) at com.aptana.editor.js.validator.JSLintValidator.parseWithLint(JSLintValidator.java:133) at com.aptana.editor.js.validator.JSLintValidator.buildFile(JSLintValidator.java:101) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:525) at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:436) at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:413) at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:307) at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:153) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
    via by Ingo Muschenetz,
  • SOOBE
    via GitHub by tobinibot
    ,
  • Plugin exception
    via GitHub by tobinibot
    ,
  • StringOutOfBoundsException
    via GitHub by tobinibot
    ,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 41 at java.lang.String.charAt(String.java:686) at com.aptana.editor.js.validator.JSLintValidator$JSLint$1.run(JSLintValidator.java:291) at org.mozilla.javascript.Context.call(Context.java:489) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504) at com.aptana.editor.js.validator.JSLintValidator$JSLint.getProblems(JSLintValidator.java:227) at com.aptana.editor.js.validator.JSLintValidator.parseWithLint(JSLintValidator.java:133) at com.aptana.editor.js.validator.JSLintValidator.buildFile(JSLintValidator.java:101) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:525) at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:436) at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:413) at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:307) at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:153) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Users with the same issue

    poroszd
    12 times, last one,
    olle.hallin
    1 times, last one,
    linxiaolong
    1 times, last one,
    jokester
    1 times, last one,
    tyson925
    1 times, last one,
    30 more bugmates