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

Atlassian JIRA | Keith Brophy | 1 decade ago
  1. 0

    From Zacharias J. Beckman: After increasing the logging level to DEBUG, I found this StringIndexOutOfBounds exception in the logs. Looks like it is blowing up while processing some CVS output, perhaps: 2004-03-08 23:04:21,290 DEBUG [web.util.component.PicoJavaActionFactory] Configuring class using PicoJavaActionFactory com.atlassian.jira.web.action.browser.Browser 2004-03-08 23:04:21,495 ERROR [atlassian.jira.vcs.DefaultRepositoryManager] Error occurred while updating repository 'Harmony'. java.lang.StringIndexOutOfBoundsException: String index out of range: -8 at java.lang.String.substring(String.java:1444) at java.lang.String.substring(String.java:1411) at org.netbeans.lib.cvsclient.command.log.LogBuilder.processRevisionDate(LogBuilder.java:282) at org.netbeans.lib.cvsclient.command.log.LogBuilder.parseLine(LogBuilder.java:134) at com.atlassian.jira.vcs.cvsimpl.CvsRepositoryUtilImpl$1.parseLine(CvsRepositoryUtilImpl.java:78) at org.netbeans.lib.cvsclient.command.BuildableCommand.messageSent(BuildableCommand.java:94) at org.netbeans.lib.cvsclient.event.MessageEvent.fireEvent(MessageEvent.java:96) at org.netbeans.lib.cvsclient.event.EventManager.fireCVSEvent(EventManager.java:107) at org.netbeans.lib.cvsclient.response.MessageResponse.process(MessageResponse.java:52) at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:444) at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:405) at org.netbeans.lib.cvsclient.command.log.LogCommand.execute(LogCommand.java:132) at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:488) at com.atlassian.jira.vcs.cvsimpl.CvsRepositoryUtilImpl.updateCvs(CvsRepositoryUtilImpl.java:87) at com.atlassian.jira.vcs.cvsimpl.CvsRepository.updateCvs(CvsRepository.java:95) at com.atlassian.jira.vcs.DefaultRepositoryManager.updateRepository(DefaultRepositoryManager.java:446) at com.atlassian.jira.vcs.DefaultRepositoryManager.updateRepositories(DefaultRepositoryManager.java:406) at com.atlassian.jira.service.services.vcs.VcsService.run(VcsService.java:48) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:51) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:147) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:387)2004-03-08 23:04:21,498 DEBUG [service.services.vcs.VcsService] VcsService service finished.2004-03-08 23:04:21,498 DEBUG [atlassian.jira.service.ServiceRunner] Finished Running Service [Container: com.atlassian.jira.service.services.vcs.VcsService null delay [3600000ms]]2004-03-08 23:04:21,498 DEBUG [atlassian.jira.service.ServiceRunner] Running Service [Container: com.atlassian.jira.service.services.export.ExportService null delay [43200000ms]]

    Atlassian JIRA | 1 decade ago | Keith Brophy
    java.lang.StringIndexOutOfBoundsException: String index out of range: -8
  2. 0

    I have configured the following welcome file: <welcome-file-list> <welcome-file>index.do</welcome-file> </welcome-file-list> and this servlet mapping: <servlet-mapping> <servlet-name>springDispatcherServlet</servlet-name> <url-pattern>/index.do</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </servlet-mapping> When I try to access my application with just "http://server/<context-path>/", I get the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -8 at java.lang.String.substring(String.java:1444) at java.lang.String.substring(String.java:1411) at org.springframework.web.util.UrlPathHelper.getPathWithinServletMapping(UrlPathHelper.java:148) at org.springframework.web.util.UrlPathHelper.getLookupPathForRequest(UrlPathHelper.java:127) at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.getHandlerInternal(AbstractUrlHandlerMapping.java:113) at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:95) at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:578) at org.springframework.web.servlet.DispatcherServlet.getLastModified(DispatcherServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:685) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.XsltFilter.doFilter(XsltFilter.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.user.presentation.AuthenticationFilter.doFilter(AuthenticationFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:117) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.ReferrerFilter.doFilter(ReferrerFilter.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.URLRewritingFilter.doFilter(URLRewritingFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    Spring JIRA | 1 decade ago | Andreas Schildbach
    java.lang.StringIndexOutOfBoundsException: String index out of range: -8
  3. 0

    I have configured the following welcome file: <welcome-file-list> <welcome-file>index.do</welcome-file> </welcome-file-list> and this servlet mapping: <servlet-mapping> <servlet-name>springDispatcherServlet</servlet-name> <url-pattern>/index.do</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </servlet-mapping> When I try to access my application with just "http://server/<context-path>/", I get the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -8 at java.lang.String.substring(String.java:1444) at java.lang.String.substring(String.java:1411) at org.springframework.web.util.UrlPathHelper.getPathWithinServletMapping(UrlPathHelper.java:148) at org.springframework.web.util.UrlPathHelper.getLookupPathForRequest(UrlPathHelper.java:127) at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.getHandlerInternal(AbstractUrlHandlerMapping.java:113) at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:95) at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:578) at org.springframework.web.servlet.DispatcherServlet.getLastModified(DispatcherServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:685) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.XsltFilter.doFilter(XsltFilter.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.user.presentation.AuthenticationFilter.doFilter(AuthenticationFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:117) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.ReferrerFilter.doFilter(ReferrerFilter.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at de.schildbach.presentation.URLRewritingFilter.doFilter(URLRewritingFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    Spring JIRA | 1 decade ago | Andreas Schildbach
    java.lang.StringIndexOutOfBoundsException: String index out of range: -8
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    尝试很多字串一起翻译,有bug

    GitHub | 2 years ago | ihrthk
    java.lang.StringIndexOutOfBoundsException: String index out of range: -8
  6. 0

    尝试很多字串一起翻译,有bug

    GitHub | 2 years ago | ihrthk
    java.lang.StringIndexOutOfBoundsException: String index out of range: -8

  1. archenroot 17 times, last 1 week ago
  2. Alexandru Popa 2 times, last 3 weeks ago
  3. poroszd 3 times, last 3 weeks ago
  4. DoktorDoener666 6 times, last 4 weeks ago
  5. eti22 3 times, last 1 month ago
16 more registered users
58 unregistered visitors
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: -8

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1444)
    2. java.lang.String.substring(String.java:1411)
    2 frames
  3. org.netbeans.lib
    LogBuilder.parseLine
    1. org.netbeans.lib.cvsclient.command.log.LogBuilder.processRevisionDate(LogBuilder.java:282)
    2. org.netbeans.lib.cvsclient.command.log.LogBuilder.parseLine(LogBuilder.java:134)
    2 frames
  4. com.atlassian.jira
    CvsRepositoryUtilImpl$1.parseLine
    1. com.atlassian.jira.vcs.cvsimpl.CvsRepositoryUtilImpl$1.parseLine(CvsRepositoryUtilImpl.java:78)
    1 frame
  5. org.netbeans.lib
    Client.executeCommand
    1. org.netbeans.lib.cvsclient.command.BuildableCommand.messageSent(BuildableCommand.java:94)
    2. org.netbeans.lib.cvsclient.event.MessageEvent.fireEvent(MessageEvent.java:96)
    3. org.netbeans.lib.cvsclient.event.EventManager.fireCVSEvent(EventManager.java:107)
    4. org.netbeans.lib.cvsclient.response.MessageResponse.process(MessageResponse.java:52)
    5. org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:444)
    6. org.netbeans.lib.cvsclient.Client.processRequests(Client.java:405)
    7. org.netbeans.lib.cvsclient.command.log.LogCommand.execute(LogCommand.java:132)
    8. org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:488)
    8 frames
  6. com.atlassian.jira
    DefaultRepositoryManager.updateRepository
    1. com.atlassian.jira.vcs.cvsimpl.CvsRepositoryUtilImpl.updateCvs(CvsRepositoryUtilImpl.java:87)
    2. com.atlassian.jira.vcs.cvsimpl.CvsRepository.updateCvs(CvsRepository.java:95)
    3. com.atlassian.jira.vcs.DefaultRepositoryManager.updateRepository(DefaultRepositoryManager.java:446)
    3 frames