java.lang.StringIndexOutOfBoundsException

tip

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

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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)
    via by Kohsuke Kawaguchi,
  • 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)
    via by Kohsuke Kawaguchi,
  • Re: zk keeps disconnecting and reconnecting
    via by Unknown author,
  • GitHub comment 474#150932295
    via GitHub by melvinzhang
    ,
  • GitHub comment 52#163535786
    via GitHub by shekmun
    ,
  • Problems with Groovy Doc
    via Stack Overflow by xabedev
    ,
  • Re: zk keeps disconnecting and reconnecting
    via by Unknown author,
    • 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)

    Users with the same issue

    harshg
    4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Handemelindo
    1 times, last one,
    Casper
    8 times, last one,
    92 more bugmates