java.lang.StringIndexOutOfBoundsException: String index out of range: 41

Appcelerator JIRA | Ingo Muschenetz | 5 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

    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}

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    java.lang.StringIndexOutOfBoundsException: String index out of range: 41
  2. 0

    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}

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    java.lang.StringIndexOutOfBoundsException: String index out of range: 41
  3. 0

    JavaScriptBody throws exception when callback invocation has illegal syntax

    GitHub | 2 years ago | konsoletyper
    java.lang.StringIndexOutOfBoundsException: String index out of range: 41
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SOOBE

    GitHub | 4 years ago | tobinibot
    java.lang.StringIndexOutOfBoundsException: String index out of range: 198
  6. 0

    Plugin exception

    GitHub | 4 years ago | tobinibot
    java.lang.StringIndexOutOfBoundsException: String index out of range: -11
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: 41

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:686)
    1 frame
  3. com.aptana.editor
    JSLintValidator$JSLint$1.run
    1. com.aptana.editor.js.validator.JSLintValidator$JSLint$1.run(JSLintValidator.java:291)
    1 frame
  4. Rhino
    ContextFactory.call
    1. org.mozilla.javascript.Context.call(Context.java:489)
    2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:504)
    2 frames
  5. com.aptana.editor
    JSLintValidator.buildFile
    1. com.aptana.editor.js.validator.JSLintValidator$JSLint.getProblems(JSLintValidator.java:227)
    2. com.aptana.editor.js.validator.JSLintValidator.parseWithLint(JSLintValidator.java:133)
    3. com.aptana.editor.js.validator.JSLintValidator.buildFile(JSLintValidator.java:101)
    3 frames
  6. com.aptana.core
    UnifiedBuilder.build
    1. com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72)
    2. com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:525)
    3. com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:436)
    4. com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:413)
    5. com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:307)
    6. com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:153)
    6 frames
  7. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    1 frame
  8. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  9. Core Resource Management
    BuildManager$1.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
    3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    3 frames
  10. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  11. Core Resource Management
    AutoBuildJob.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    5 frames
  12. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    1 frame