java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for ReleaseRemoverTask

Sonatype JIRA | Renato Parente | 3 years ago
  1. 0

    h4. Intro The scheduled task *Remove Snapshots From Repository* does not found the repository with ID=snapshots, the task is aborted and throw an exception. In the old Nexus version(2.4) the task worked without problems. h4. Scheduled Task Configurarion Repository: Snapshots Number to keep: 10 Repository Target: All (site) h4. Nexus Log {code} 2013-06-27 09:09:48 INFO [ool-1-thread-13] - org.sonatype.nexus.maven.tasks.DefaultReleaseRemover - Removing older releases from repository: snapshots bq. 2013-06-27 09:09:48 WARN [ool-1-thread-13] - org.sonatype.nexus.maven.tasks.ReleaseRemoverTask - Scheduled task (Remove Snapshots From Repository) failed :: bq. Removing old releases from repository Snapshots (started 2013-06-27T09:09:48+02:00, runtime 0:00:00.007) bq. java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for ReleaseRemoverTask at org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases(DefaultReleaseRemover.java:115) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:44) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:24) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:179) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:463) [sisu-task-scheduler-1.8.1.jar:1.8.1] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_21] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_21] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_21] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_21] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_21] bq. 2013-06-27 09:09:48 WARN [ool-1-thread-13] - org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task Remove Snapshots From Repository bq. java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for ReleaseRemoverTask at org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases(DefaultReleaseRemover.java:115) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:44) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:24) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:179) ~[nexus-core-2.5.0-04.jar:2.5.0-04] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:463) ~[sisu-task-scheduler-1.8.1.jar:1.8.1] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_21] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_21] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_21] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_21] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_21] {code}

    Sonatype JIRA | 3 years ago | Renato Parente
    java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for ReleaseRemoverTask
  2. 0

    Saw this in the log this morning and the scheduled task is marked as "BROKEN" in the UI 2010-09-09 06:19:43 INFO [pool-1-thread-2] - o.s.n.p.m.m.M1Layou~ - Expiring local cache in repository ID='central-m1' from path='/' 2010-09-09 06:19:44 INFO [pool-1-thread-2] - o.s.n.p.w.DefaultWa~ - Aborted walking on repository ID='central-m1' from path='/', cause: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) 2010-09-09 06:19:44 INFO [pool-1-thread-2] - o.s.n.f.DefaultFeed~ - Expiring caches for all registered repositories from path and below. : Process started on Thu Sep 09 03:30:04 CEST 2010, finished on Thu Sep 09 06:19:44 CEST 2010 with error. Error message is: org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on repository ID='central-m1' from path='/'. Strack trace: org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='central-m1' from path='/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:158) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:118) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) ... 12 more org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='central-m1' from path='/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:158) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:118) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) ... 12 more

    Sonatype JIRA | 6 years ago | Todd Merrill
    java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem
  3. 0

    Saw this in the log this morning and the scheduled task is marked as "BROKEN" in the UI 2010-09-09 06:19:43 INFO [pool-1-thread-2] - o.s.n.p.m.m.M1Layou~ - Expiring local cache in repository ID='central-m1' from path='/' 2010-09-09 06:19:44 INFO [pool-1-thread-2] - o.s.n.p.w.DefaultWa~ - Aborted walking on repository ID='central-m1' from path='/', cause: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) 2010-09-09 06:19:44 INFO [pool-1-thread-2] - o.s.n.f.DefaultFeed~ - Expiring caches for all registered repositories from path and below. : Process started on Thu Sep 09 03:30:04 CEST 2010, finished on Thu Sep 09 06:19:44 CEST 2010 with error. Error message is: org.sonatype.nexus.proxy.walker.WalkerException, Aborted walking on repository ID='central-m1' from path='/'. Strack trace: org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='central-m1' from path='/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:158) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:118) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) ... 12 more org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='central-m1' from path='/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:158) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:118) at org.sonatype.nexus.proxy.repository.AbstractRepository.expireCaches(AbstractRepository.java:405) at org.sonatype.nexus.DefaultNexus.expireAllCaches(DefaultNexus.java:382) at org.sonatype.nexus.tasks.ExpireCacheTask.doRun(ExpireCacheTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem at org.sonatype.nexus.proxy.item.AbstractStorageItem.overlay(AbstractStorageItem.java:439) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:142) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:335) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:634) at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1193) at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1005) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:223) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:244) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:110) ... 12 more

    Sonatype JIRA | 6 years ago | Todd Merrill
    java.lang.IllegalArgumentException: Cannot overlay storage item of class org.sonatype.nexus.proxy.item.DefaultStorageLinkItem onto this item of class org.sonatype.nexus.proxy.item.DefaultStorageFileItem
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Greetings, I have 2 Nexus instances. In ServerA, there are the "releases" and "snapshots" hosted repositories. In ServerB, there are the equivalent "releases" and "snapshots" proxy repositories. Some of the artifacts from the hosted repos are cached to the remote proxy ones. There are 2 Scheduled Tasks in ServerA to "Remove Releases From Repository" for the "releases" hosted repo and "Remove Snapshots From Repository" from the "snapshots" hosted repo. What i want are the artifacts scrubbed and cached remotely to be removed from the remote proxy repositories in ServerB as well. I tried to create the same Tasks to remove from the proxy repositories, but i take the following: For "Remove Releases From Repository" 2013-11-15 12:15:03 INFO [pool-1-thread-1] - org.sonatype.nexus.maven.tasks.ReleaseRemoverTask - Scheduled task (releases_scrubber) started :: Removing old releases from repository releases 2013-11-15 12:15:03 INFO [pool-1-thread-1] - org.sonatype.nexus.maven.tasks.DefaultReleaseRemover - Removing older releases from repository: releases 2013-11-15 12:15:03 WARN [pool-1-thread-1] - org.sonatype.nexus.maven.tasks.ReleaseRemoverTask - Scheduled task (releases_scrubber) failed :: Removing old releases from repository releases (started 2013-11-15T12:15:03+02:00, runtime 0:00:00.128) java.lang.IllegalArgumentException: The repository with ID=releases is not valid for ReleaseRemoverTask at org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases(DefaultReleaseRemover.java:115) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:52) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:26) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:177) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:483) ~[nexus-scheduler-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.7.0_25] at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25] 2013-11-15 12:15:03 WARN [pool-1-thread-1] - org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task releases_scrubber java.lang.IllegalArgumentException: The repository with ID=releases is not valid for ReleaseRemoverTask at org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases(DefaultReleaseRemover.java:115) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:52) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:26) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:177) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:483) ~[nexus-scheduler-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.7.0_25] at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25] 2013-11-15 12:15:03 INFO [st-1-thread-164] - org.sonatype.micromailer.imp.DefaultEMailer - Handling mail request NX1384510503282 For "Remove Snapshots From Repository" 2013-11-15 12:29:24 INFO [pool-1-thread-2] - org.sonatype.nexus.maven.tasks.SnapshotRemoverTask - Scheduled task (snapshots_scrubber) started :: Removing snapshots from repository snapshots 2013-11-15 12:29:25 INFO [pool-1-thread-2] - org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover - Removing old SNAPSHOT deployments from snapshots repository. 2013-11-15 12:29:25 WARN [pool-1-thread-2] - org.sonatype.nexus.maven.tasks.SnapshotRemoverTask - Scheduled task (snapshots_scrubber) failed :: Removing snapshots from repository snapshots (started 2013-11-15T12:29:24+02:00, runtime 0:00:00.318) java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for Snapshot Removal Task! at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:119) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:128) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:27) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:177) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:483) ~[nexus-scheduler-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.7.0_25] at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25] 2013-11-15 12:29:25 INFO [st-1-thread-178] - org.sonatype.micromailer.imp.DefaultEMailer - Handling mail request NX1384511365406 2013-11-15 12:29:25 WARN [pool-1-thread-2] - org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task snapshots_scrubber java.lang.IllegalArgumentException: The repository with ID=snapshots is not valid for Snapshot Removal Task! at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:119) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:128) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:27) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:177) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:483) ~[nexus-scheduler-2.6.2-01.jar:2.6.2-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) ~[nexus-core-2.6.2-01.jar:2.6.2-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.7.0_25] at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25] If these Tasks were not meant to run against proxy repositories, how can i remove the artifacts removed from ServerA? Is there another mechanism to do that?

    Sonatype JIRA | 3 years ago | Petros Marinos
    java.lang.IllegalArgumentException: The repository with ID=releases is not valid for ReleaseRemoverTask
  6. 0

    Eclipse IllegalArgumentException: element is not valid for the containing declared type

    GitHub | 2 years ago | jdpatterson
    java.lang.IllegalArgumentException: element is not valid for the containing declared type

    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.IllegalArgumentException

      The repository with ID=snapshots is not valid for ReleaseRemoverTask

      at org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases()
    2. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.maven.tasks.DefaultReleaseRemover.removeReleases(DefaultReleaseRemover.java:115)[nexus-core-2.5.0-04.jar:2.5.0-04]
      2. org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:44)[nexus-core-2.5.0-04.jar:2.5.0-04]
      3. org.sonatype.nexus.maven.tasks.ReleaseRemoverTask.doRun(ReleaseRemoverTask.java:24)[nexus-core-2.5.0-04.jar:2.5.0-04]
      4. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:179)[nexus-core-2.5.0-04.jar:2.5.0-04]
      4 frames
    3. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:463)[sisu-task-scheduler-1.8.1.jar:1.8.1]
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[na:1.7.0_21]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)[na:1.7.0_21]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_21]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_21]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_21]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_21]
      7. java.lang.Thread.run(Thread.java:722)[na:1.7.0_21]
      7 frames