java.lang.StringIndexOutOfBoundsException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • Running the snapshot remover against a maven 2 snapshot repository that has a virtual maven 1 repository associated with it fails: {quote} 2015-01-16 12:30:32,411-0600 WARN [pxpool-1-thread-1] admin org.sonatype.nexus.proxy.maven.maven1.M1LayoutedM2ShadowRepository - Could not sync shadow M1LayoutedM2ShadowRepository(id=m1shadow) for event RepositoryItemEventDeleteRoot(sender="Snapshots" [id=snapshots], snapshots:/com/foo/project/1.0.3-SNAPSHOT/project-1.0.3-20150116.182835-2.pom.sha1) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1954) ~[na:1.8.0_25] at org.sonatype.nexus.proxy.maven.LayoutConverterShadowRepository.deleteLink(LayoutConverterShadowRepository.java:495) ~[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.repository.AbstractShadowRepository.onRepositoryItemEvent(AbstractShadowRepository.java:116) ~[nexus-core-2.11.1-01.jar:2.11.1-01] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_25] at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_25] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:80) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:329) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:57) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:281) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:78) [goodies-eventbus-1.9.jar:1.9] at org.sonatype.nexus.proxy.repository.AbstractRepository.deleteItem(AbstractRepository.java:916) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.doOnCollectionExit(DefaultSnapshotRemover.java:535) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:388) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:215) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:158) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:117) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:98) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:28) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.1-01.jar:2.11.1-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] {quote}
    via by Rich Seddon,
  • Package mapping issue
    via GitHub by rahimalizada
    ,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1954)[na:1.8.0_25] at org.sonatype.nexus.proxy.maven.LayoutConverterShadowRepository.deleteLink(LayoutConverterShadowRepository.java:495)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.repository.AbstractShadowRepository.onRepositoryItemEvent(AbstractShadowRepository.java:116)[nexus-core-2.11.1-01.jar:2.11.1-01] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_25] at java.lang.reflect.Method.invoke(Method.java:483)[na:1.8.0_25] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:80)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.dispatch(EventBus.java:329)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultGuavaEventBus.dispatch(DefaultGuavaEventBus.java:34)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.ReentrantGuavaEventBus.dispatchQueuedEvents(ReentrantGuavaEventBus.java:57)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.guava.EventBus.post(EventBus.java:281)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus.post(DefaultEventBus.java:78)[goodies-eventbus-1.9.jar:1.9] at org.sonatype.nexus.proxy.repository.AbstractRepository.deleteItem(AbstractRepository.java:916)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.doOnCollectionExit(DefaultSnapshotRemover.java:535)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:388)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:215)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:158)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:117)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:98)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:28)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)[nexus-scheduler-2.11.1-01.jar:2.11.1-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)[nexus-core-2.11.1-01.jar:2.11.1-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_25] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_25]

    Users with the same issue

    zsamboki
    1 times, last one,
    osvzs
    2 times, last one,
    richard77
    2 times, last one,
    MoYapro
    1 times, last one,
    kjhdofjosvs
    2 times, last one,
    92 more bugmates