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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via GitHub by Omertron

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

Solutions on the web

via Spring JIRA by Dave Syer, 1 year ago
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
via Spring JIRA by Dave Syer, 1 year ago
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
via spring.io by Unknown author, 1 year ago
Unexpected exception parsing XML document from file [C:/Workspaces/secure/build/projects/secure-web/src/com/resolute/teamsiteapp/secureweb/config/applicationContext-security.xml] ; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/support/BaseLdapPathContextSource
via Stack Overflow by Arun
, 2 years ago
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
via Stack Overflow by user3448105
, 2 years ago
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-security.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/web/util/AntPathRequestMatcher
via Stack Overflow by Koohoolinn
, 2 years ago
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring/security-context.xml]; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
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 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.(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)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
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.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.basicBuild(BuildManager.java:166)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
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)

Users with the same issue

4 times, 1 week ago
4803 times, 1 week ago
3 times, 1 week ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
105 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.