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

Spring JIRA | Dave Syer | 8 years ago
  1. 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
  2. 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
  3. 0

    minecraft forge doesnt seem to call postInit

    Stack Overflow | 1 year ago | Chris J.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StringIndexOutOfBoundsException in OpenOnConsoleTypeAction.parseSelection

    Eclipse Bugzilla | 1 decade ago | simon.gunzenreiner
    java.lang.StringIndexOutOfBoundsException: String index out of range: -23
  6. 0

    StringIndexOutOfBoundsException problem with handles

    Eclipse Bugzilla | 6 years ago | andrew.eisenberg
    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(String.java:1938)
    2. java.lang.String.substring(String.java:1905)
    2 frames
  3. org.springframework.ide
    EclipsePathMatchingResourcePatternResolver.getResources
    1. org.springframework.ide.eclipse.core.io.ResourceUtils$ResourceHolder.getRelevantPath(ResourceUtils.java:67)
    2. org.springframework.ide.eclipse.core.io.ResourceUtils.getResourceForProject(ResourceUtils.java:375)
    3. org.springframework.ide.eclipse.core.io.ResourceUtils.getResource(ResourceUtils.java:289)
    4. org.springframework.ide.eclipse.core.io.ResourceUtils.getResource(ResourceUtils.java:268)
    5. org.springframework.ide.eclipse.core.io.EclipseClassPathResource.<init>(EclipseClassPathResource.java:61)
    6. org.springframework.ide.eclipse.core.io.EclipseFileResourceLoader.getResource(EclipseFileResourceLoader.java:58)
    7. org.springframework.ide.eclipse.core.io.EclipsePathMatchingResourcePatternResolver.getResources(EclipsePathMatchingResourcePatternResolver.java:118)
    7 frames
  4. Spring Beans
    XmlBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177)
    2. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)
    3. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
    4. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
    5. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
    6. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
    7. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
    8. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
    9. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    9 frames
  5. org.springframework.ide
    SpringProjectContributionManager$ResourceDeltaVisitor.visit
    1. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:276)
    2. org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(AbstractBeansConfig.java:511)
    3. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(BeansProject.java:419)
    4. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(BeansProject.java:404)
    5. org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(BeansProject.java:386)
    6. org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(BeansModel.java:209)
    7. org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(BeansCoreUtils.java:43)
    8. org.springframework.ide.eclipse.aop.core.util.AopReferenceModelUtils.getAffectedFiles(AopReferenceModelUtils.java:127)
    9. org.springframework.ide.eclipse.aop.core.builder.AopReferenceModelProjectBuilder.getAffectedResources(AopReferenceModelProjectBuilder.java:45)
    10. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$ResourceDeltaVisitor.visit(SpringProjectContributionManager.java:211)
    10 frames
  6. Core Resource Management
    ResourceDelta.accept
    1. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
    2. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    3. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    4. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    5. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    6. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    7. org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
    7 frames
  7. org.springframework.ide
    SpringProjectContributionManager.build
    1. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.getAffectedResources(SpringProjectContributionManager.java:133)
    2. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:63)
    2 frames
  8. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
    1 frame
  9. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    1 frame
  10. Core Resource Management
    BuildManager$1.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
    3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
    3 frames
  11. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    1 frame
  12. Core Resource Management
    AutoBuildJob.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
    2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
    4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
    5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
    5 frames
  13. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    1 frame