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

Jenkins JIRA | Kohsuke Kawaguchi | 9 years ago
  1. 0

    When I try URLs like "file:///c:/kohsuke/My Projects/hudson/fosdem/sv", svnkit dies with NPE like Status Code: 500 Exception: Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1768) at org.tmatesoft.svn.core.internal.io.fs.FSFS.findRepositoryRoot(FSFS.java:886) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:90) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.testConnection(FSRepository.java:82) at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1220) at hudson.scm.SubversionSCM$DescriptorImpl$2.check(SubversionSCM.java:1158) at hudson.util.FormFieldValidator.process(FormFieldValidator.java:54) at hudson.scm.SubversionSCM$DescriptorImpl.doSvnRemoteLocationCheck(SubversionSCM.java:1137) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:59) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:63) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 9 years ago | Kohsuke Kawaguchi
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3
  2. 0

    When I try URLs like "file:///c:/kohsuke/My Projects/hudson/fosdem/sv", svnkit dies with NPE like Status Code: 500 Exception: Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1768) at org.tmatesoft.svn.core.internal.io.fs.FSFS.findRepositoryRoot(FSFS.java:886) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:111) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:90) at org.tmatesoft.svn.core.internal.io.fs.FSRepository.testConnection(FSRepository.java:82) at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1220) at hudson.scm.SubversionSCM$DescriptorImpl$2.check(SubversionSCM.java:1158) at hudson.util.FormFieldValidator.process(FormFieldValidator.java:54) at hudson.scm.SubversionSCM$DescriptorImpl.doSvnRemoteLocationCheck(SubversionSCM.java:1137) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:59) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:63) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 9 years ago | Kohsuke Kawaguchi
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3
  3. 0

    StringIndexOutOfBoundException during complete

    Eclipse Bugzilla | 9 years ago | kds
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    URI translation may be broken

    GitHub | 2 years ago | bryce-anderson
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3
  6. 0

    Out of bounds error on a simple String array [SOLVED]

    Stack Overflow | 2 years ago | spyr03
    java.lang.StringIndexOutOfBoundsException: String index out of range: -3

  1. richard77 2 times, last 3 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 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: -3

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1768)
    1 frame
  3. SVNKit Library
    FSFS.findRepositoryRoot
    1. org.tmatesoft.svn.core.internal.io.fs.FSFS.findRepositoryRoot(FSFS.java:886)
    1 frame