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

JFrog JIRA | Yoav Landman | 8 years ago
  1. 0

    Artifactory / Mailing Lists

    sourceforge.net | 8 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  2. 0

    For example, requesting: org/apache/maven/plugins/maven-plugin-plugin/maven-metadata-ccad-snapshots.xml results in: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1768) at org.artifactory.api.mime.NamingUtils.getMetadataParentPath(NamingUtils.java:131) at org.artifactory.repo.RealRepoBase.accepts(RealRepoBase.java:90) at org.artifactory.repo.RealRepoBase.assertValidPath(RealRepoBase.java:130) at org.artifactory.repo.jcr.JcrRepoBase.allowsDownload(JcrRepoBase.java:388) at org.artifactory.repo.jcr.JcrRepoBase.getInfo(JcrRepoBase.java:347) at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:159) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy44.getInfo(Unknown Source) at org.artifactory.engine.DownloadServiceImpl.txGetInfo(DownloadServiceImpl.java:511) at org.artifactory.engine.DownloadServiceImpl.processMetadata(DownloadServiceImpl.java:293) at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:128) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy44.process(Unknown Source) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:110) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:113) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

    JFrog JIRA | 8 years ago | Yoav Landman
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  3. 0

    Artifactory / Mailing Lists

    sourceforge.net | 7 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    For example, requesting: org/apache/maven/plugins/maven-plugin-plugin/maven-metadata-ccad-snapshots.xml results in: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1768) at org.artifactory.api.mime.NamingUtils.getMetadataParentPath(NamingUtils.java:131) at org.artifactory.repo.RealRepoBase.accepts(RealRepoBase.java:90) at org.artifactory.repo.RealRepoBase.assertValidPath(RealRepoBase.java:130) at org.artifactory.repo.jcr.JcrRepoBase.allowsDownload(JcrRepoBase.java:388) at org.artifactory.repo.jcr.JcrRepoBase.getInfo(JcrRepoBase.java:347) at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:159) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy44.getInfo(Unknown Source) at org.artifactory.engine.DownloadServiceImpl.txGetInfo(DownloadServiceImpl.java:511) at org.artifactory.engine.DownloadServiceImpl.processMetadata(DownloadServiceImpl.java:293) at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:128) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy44.process(Unknown Source) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:110) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:113) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

    JFrog JIRA | 8 years ago | Yoav Landman
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  6. 0

    Bug Reports/Resolved/Archive - JAMWiki Java Wiki Engine

    jamwiki.org | 5 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2

  1. richard77 2 times, last 5 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: -2

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1768)
    1 frame
  3. org.artifactory.api
    NamingUtils.getMetadataParentPath
    1. org.artifactory.api.mime.NamingUtils.getMetadataParentPath(NamingUtils.java:131)
    1 frame
  4. org.artifactory.repo
    JcrRepoBase.getInfo
    1. org.artifactory.repo.RealRepoBase.accepts(RealRepoBase.java:90)
    2. org.artifactory.repo.RealRepoBase.assertValidPath(RealRepoBase.java:130)
    3. org.artifactory.repo.jcr.JcrRepoBase.allowsDownload(JcrRepoBase.java:388)
    4. org.artifactory.repo.jcr.JcrRepoBase.getInfo(JcrRepoBase.java:347)
    4 frames
  5. org.artifactory.engine
    DownloadServiceImpl.getInfo
    1. org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:159)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  7. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  8. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    1 frame
  9. org.artifactory.jcr
    LockingAdvice.invoke
    1. org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:79)
    1 frame
  10. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  11. Unknown
    $Proxy44.getInfo
    1. $Proxy44.getInfo(Unknown Source)
    1 frame
  12. org.artifactory.engine
    DownloadServiceImpl.process
    1. org.artifactory.engine.DownloadServiceImpl.txGetInfo(DownloadServiceImpl.java:511)
    2. org.artifactory.engine.DownloadServiceImpl.processMetadata(DownloadServiceImpl.java:293)
    3. org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:128)
    3 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  14. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    2 frames
  15. Unknown
    $Proxy44.process
    1. $Proxy44.process(Unknown Source)
    1 frame
  16. org.artifactory.webapp
    RepoFilter.doFilter
    1. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:110)
    2. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:73)
    2 frames
  17. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
    1 frame
  18. org.artifactory.webapp
    AccessFilter.doFilter
    1. org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190)
    2. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:113)
    3. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90)
    3 frames
  19. Jetty Server
    ServletHandler$CachedChain.doFilter
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
    1 frame
  20. org.artifactory.webapp
    ArtifactoryFilter.doFilter
    1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51)
    1 frame
  21. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
    3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
    7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    10. org.mortbay.jetty.Server.handle(Server.java:324)
    11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
    12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
    13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
    14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
    15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
    16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    16 frames
  22. Jetty Util
    BoundedThreadPool$PoolThread.run
    1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    1 frame