StringIndexOutOfBounds in ServletMappingInfo$PathMappingInfo

I have a webapp with a servlet mapping like this

springController * It's not flagged as an error in the editor (icon is green) but it causes some exceptions to occur (and prevents committing change lists for example). ServletMappingInfo$PathMappingInfo constructor seems to assert the url-pattern is at least 2 chars. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at com.intellij.javaee.web.ServletMappingInfo$PathMappingInfo.]]>(ServletMappingInfo.java:160)
at com.intellij.javaee.web.ServletMappingType$2.createMappingInfo(ServletMappingType.java:28)
at com.intellij.j2ee.web.WebUtilImpl.resolveServletMappingInfo(WebUtilImpl.java:98)
at com.intellij.javaee.web.ServletPathReferenceProvider.createReferences(ServletPathReferenceProvider.java:66)
at com.intellij.openapi.paths.PathReferenceManagerImpl.a(PathReferenceManagerImpl.java:108)
at com.intellij.openapi.paths.PathReferenceManagerImpl.createReferences(PathReferenceManagerImpl.java:36)
at com.intellij.psi.impl.source.resolve.reference.impl.providers.WebPathReferenceProvider.getReferencesByElement(WebPathReferenceProvider.java:48)
at com.intellij.psi.impl.source.resolve.ResolveUtil.getReferencesFromProviders(ResolveUtil.java:16)
at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.getReferences(XmlAttributeValueImpl.java:3)
at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.visitXmlAttributeValue(XmlHighlightVisitor.java:257)
at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.accept(XmlAttributeValueImpl.java:13)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitXmlElement(HighlightVisitorImpl.java:293)
at com.intellij.psi.XmlElementVisitor.visitXmlAttributeValue(XmlElementVisitor.java:62)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitXmlAttributeValue(HighlightVisitorImpl.java:280)
at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.accept(XmlAttributeValueImpl.java:13)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:193)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:121)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:148)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:17)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:66)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:7)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:201)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:37)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 7.0M1a Build #6827
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - JDK: 1.5.0_11
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) Client VM
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - Vendor: Sun Microsystems Inc.
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - OS: Windows 2000
2007-05-10 10:57:16,137 ERROR - aemon.impl.PassExecutorService - Last Action: ChangesView.Commit

Please sign in to leave a comment.