Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.

  2. ,
    via GitHub by Omertron

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

Solutions on the web

via Sonatype JIRA by Rich Seddon, 1 year ago
via Google Groups by Wolf Halton, 7 months ago
via openxava by dalcaraz
, 1 year ago
String index out of range: -1
via Atlassian JIRA by Peter Obara [Atlassian], 2 years ago
via GitHub by pnedonosko
, 1 year ago
String index out of range: 1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1	at java.lang.String.substring(String.java:1937)	at org.sonatype.nexus.proxy.maven.MUtils.readDigestFromStream(MUtils.java:75)	at org.sonatype.nexus.proxy.maven.MUtils.readDigestFromFileItem(MUtils.java:115)	at org.sonatype.nexus.proxy.maven.ChecksumContentValidator.retrieveRemoteHash(ChecksumContentValidator.java:142)	at org.sonatype.nexus.proxy.maven.AbstractChecksumContentValidator.isRemoteItemContentValid(AbstractChecksumContentValidator.java:43)	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doValidateRemoteItemContent(AbstractProxyRepository.java:1354)	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveRemoteItem(AbstractProxyRepository.java:1498)	at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveRemoteItem(AbstractMavenRepository.java:445)	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:1202)	at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:1085)	at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:393)	at org.sonatype.nexus.proxy.maven.maven2.M2Repository.doRetrieveItem(M2Repository.java:421)	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:769)	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:584)	at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:343)	at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:142)	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:769)	at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:584)	at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:183)	at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:139)	at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:249)	at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:44)	at org.restlet.resource.Resource.getRepresentation(Resource.java:302)	at org.restlet.resource.Resource.handleGet(Resource.java:464)	at org.restlet.Finder.handle(Finder.java:353)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Router.handle(Router.java:504)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)	at org.restlet.Application.handle(Application.java:341)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Router.handle(Router.java:504)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at org.restlet.Router.handle(Router.java:504)	at org.restlet.Filter.doHandle(Filter.java:150)	at org.restlet.Filter.handle(Filter.java:195)	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)	at org.restlet.Component.handle(Component.java:673)	at org.restlet.Server.handle(Server.java:331)	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)	at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:278)	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:268)	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:180)	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:84)	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)	at org.sonatype.nexus.web.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:88)	at org.sonatype.nexus.web.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:58)	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:126)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:344)	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)	at org.eclipse.jetty.server.Server.handle(Server.java:345)	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)	at java.lang.Thread.run(Thread.java:680)