java.lang.StringIndexOutOfBoundsException: String index out of range: -23

shelled | noackjr | 7 years ago
  1. 0

    Open error: String index out of range: -23

    shelled | 7 years ago | noackjr
    java.lang.StringIndexOutOfBoundsException: String index out of range: -23
  2. 0

    StringIndexOutOfBoundsException with 2.0.1

    shelled | 5 years ago | rannyakuza
    java.lang.StringIndexOutOfBoundsException: String index out of range: -35
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    minecraft forge doesnt seem to call postInit

    Stack Overflow | 1 year ago | Chris J.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  5. 0

    {code} org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:/Dave/Spring/spring-batch/trunk/archetypes/cli/src/main/resources/example/simpleJob.xml]; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -23 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:276) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(AbstractBeansConfig.java:511) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(BeansProject.java:419) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(BeansProject.java:404) at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:386) at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(BeansModel.java:209) at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(BeansCoreUtils.java:43) at org.springframework.ide.eclipse.aop.core.util.AopReferenceModelUtils.getAffectedFiles(AopReferenceModelUtils.java:127) at org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.getAffectedResources(AopReferenceModelProjectBuilder.java:45) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$ResourceDeltaVisitor.visit(SpringProjectContributionManager.java:211) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.getAffectedResources(SpringProjectContributionManager.java:133) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:63) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -23 at java.lang.String.substring(String.java:1938) at java.lang.String.substring(String.java:1905) at org.springframework.ide.eclipse.core.io.ResourceUtils$ResourceHolder.getRelevantPath(ResourceUtils.java:67) at org.springframework.ide.eclipse.core.io.ResourceUtils.getResourceForProject(ResourceUtils.java:375) at org.springframework.ide.eclipse.core.io.ResourceUtils.getResource(ResourceUtils.java:289) at org.springframework.ide.eclipse.core.io.ResourceUtils.getResource(ResourceUtils.java:268) at org.springframework.ide.eclipse.core.io.EclipseClassPathResource.<init>(EclipseClassPathResource.java:61) at org.springframework.ide.eclipse.core.io.EclipseFileResourceLoader.getResource(EclipseFileResourceLoader.java:58) at org.springframework.ide.eclipse.core.io.EclipsePathMatchingResourcePatternResolver.getResources(EclipsePathMatchingResourcePatternResolver.java:118) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ... 33 more {code}

    Spring JIRA | 8 years ago | Dave Syer
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:/Dave/Spring/spring-batch/trunk/archetypes/cli/src/main/resources/example/simpleJob.xml]; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -23
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: -23

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(Unknown Source)
    1 frame
  3. net.sourceforge.shelled
    ShellScriptSourceParser.parse
    1. net.sourceforge.shelled.core.parser.ShellScriptSourceParser.parse(ShellScriptSourceParser.java:68)
    2. net.sourceforge.shelled.core.parser.ShellScriptSourceParser.parse(ShellScriptSourceParser.java:37)
    2 frames
  4. org.eclipse.dltk
    AbstractSourceElementParser.parse
    1. org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:120)
    2. org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:45)
    3. org.eclipse.dltk.core.AbstractSourceElementParser.parse(AbstractSourceElementParser.java:48)
    3 frames
  5. net.sourceforge.shelled
    ShelledSourceElementParser.parseSourceModule
    1. net.sourceforge.shelled.core.parser.ShelledSourceElementParser.parseSourceModule(ShelledSourceElementParser.java:32)
    1 frame
  6. org.eclipse.dltk
    SourceModuleDocumentProvider.createFileInfo
    1. org.eclipse.dltk.core.SourceParserUtil.parseSourceModule(SourceParserUtil.java:237)
    2. org.eclipse.dltk.internal.core.AbstractSourceModule.buildStructure(AbstractSourceModule.java:529)
    3. org.eclipse.dltk.internal.core.Openable.generateInfos(Openable.java:182)
    4. org.eclipse.dltk.internal.core.ModelElement.openWhenClosed(ModelElement.java:177)
    5. org.eclipse.dltk.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:42)
    6. org.eclipse.dltk.internal.core.ModelOperation.run(ModelOperation.java:698)
    7. org.eclipse.dltk.internal.core.ModelOperation.runOperation(ModelOperation.java:763)
    8. org.eclipse.dltk.internal.core.SourceModule.becomeWorkingCopy(SourceModule.java:70)
    9. org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.createFileInfo(SourceModuleDocumentProvider.java:1271)
    9 frames
  7. Default Text Editor
    TextFileDocumentProvider.connect
    1. org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478)
    1 frame
  8. org.eclipse.dltk
    SourceModuleDocumentProvider.connect
    1. org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.connect(SourceModuleDocumentProvider.java:1517)
    1 frame
  9. Text Editor Framework
    AbstractDecoratedTextEditor.doSetInput
    1. org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4134)
    2. org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:203)
    3. org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1413)
    3 frames
  10. org.eclipse.dltk
    ScriptEditor.doSetInput
    1. org.eclipse.dltk.internal.ui.editor.ScriptEditor.internalDoSetInput(ScriptEditor.java:776)
    2. org.eclipse.dltk.internal.ui.editor.ScriptEditor.doSetInput(ScriptEditor.java:1259)
    2 frames
  11. Text Editor Framework
    AbstractTextEditor$19.run
    1. org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3115)
    1 frame
  12. JFace
    ModalContext.run
    1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    2 frames