java.lang.IllegalArgumentException: This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101

Sonatype JIRA | Kristine O'Connor | 8 years ago
  1. 0

    Repositories Config => Create a Virtual repo => Enter in a Repository ID of ccc-virtual-repo => Enter in a Repository Name of ccc-virtual-repo => Change the format to maven2 => Enter in a Source Nexus Repository ID of central => Select Save => An error of ERROR 500: Internal Server Error appears. (Note that if I change the format to maven1 and select save with the same settings, it saves without error). From the nexus.log: 2008-07-30 15:11:48.354 ERROR [btpool0-36:] - org.sonatype.nexus.rest.ApplicationBridge: Unhandled exception or error intercepted java.lang.IllegalArgumentException: This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101 at org.sonatype.nexus.proxy.repository.ShadowRepository.setMasterRepository(ShadowRepository.java:91) at org.sonatype.nexus.proxy.maven.LayoutConverterShadowRepository.setMasterRepository(LayoutConverterShadowRepository.java:95) at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.updateRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:344) at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:296) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:922) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:543) at org.sonatype.nexus.rest.repositories.RepositoryListResourceHandler.post(RepositoryListResourceHandler.java:191) at org.restlet.resource.Resource.handlePost(Resource.java:484) at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePost(AbstractNexusResourceHandler.java:338) at org.restlet.Finder.handle(Finder.java:297) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) at org.restlet.Application.handle(Application.java:294) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) at org.restlet.Component.handle(Component.java:231) at org.restlet.Server.handle(Server.java:282) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:378) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:69) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 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:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.IllegalArgumentException: This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101
  2. 0

    Repositories Config => Create a Virtual repo => Enter in a Repository ID of ccc-virtual-repo => Enter in a Repository Name of ccc-virtual-repo => Change the format to maven2 => Enter in a Source Nexus Repository ID of central => Select Save => An error of ERROR 500: Internal Server Error appears. (Note that if I change the format to maven1 and select save with the same settings, it saves without error). From the nexus.log: 2008-07-30 15:11:48.354 ERROR [btpool0-36:] - org.sonatype.nexus.rest.ApplicationBridge: Unhandled exception or error intercepted java.lang.IllegalArgumentException: This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101 at org.sonatype.nexus.proxy.repository.ShadowRepository.setMasterRepository(ShadowRepository.java:91) at org.sonatype.nexus.proxy.maven.LayoutConverterShadowRepository.setMasterRepository(LayoutConverterShadowRepository.java:95) at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.updateRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:344) at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:296) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:922) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:543) at org.sonatype.nexus.rest.repositories.RepositoryListResourceHandler.post(RepositoryListResourceHandler.java:191) at org.restlet.resource.Resource.handlePost(Resource.java:484) at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePost(AbstractNexusResourceHandler.java:338) at org.restlet.Finder.handle(Finder.java:297) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) at org.restlet.Application.handle(Application.java:294) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) at org.restlet.Component.handle(Component.java:231) at org.restlet.Server.handle(Server.java:282) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:378) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:69) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 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:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.IllegalArgumentException: This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101
  3. 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
  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

    JPA generation of MREFs doesn't work.

    GitHub | 1 year ago | fdlk
    java.lang.IllegalArgumentException: repository is null

    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

      This shadow repository needs master repository with content class org.sonatype.nexus.proxy.maven.maven1.Maven1ContentClass@b60b93, but the passed master repository is contentClass org.sonatype.nexus.proxy.maven.maven2.Maven2ContentClass@340101

      at org.sonatype.nexus.proxy.repository.ShadowRepository.setMasterRepository()
    2. ${project.groupId}:${project.artifactId}
      DefaultNexus.createRepositoryShadow
      1. org.sonatype.nexus.proxy.repository.ShadowRepository.setMasterRepository(ShadowRepository.java:91)
      2. org.sonatype.nexus.proxy.maven.LayoutConverterShadowRepository.setMasterRepository(LayoutConverterShadowRepository.java:95)
      3. org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.updateRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:344)
      4. org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:296)
      5. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:922)
      6. org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:543)
      6 frames
    3. Nexus Core
      RepositoryListResourceHandler.post
      1. org.sonatype.nexus.rest.repositories.RepositoryListResourceHandler.post(RepositoryListResourceHandler.java:191)
      1 frame
    4. org.restlet.resource
      Resource.handlePost
      1. org.restlet.resource.Resource.handlePost(Resource.java:484)
      1 frame
    5. Nexus Core
      AbstractNexusResourceHandler.handlePost
      1. org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePost(AbstractNexusResourceHandler.java:338)
      1 frame
    6. org.restlet
      Router.handle
      1. org.restlet.Finder.handle(Finder.java:297)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Router.handle(Router.java:445)
      5. org.restlet.Filter.doHandle(Filter.java:105)
      6. org.restlet.Filter.handle(Filter.java:135)
      7. org.restlet.Filter.doHandle(Filter.java:105)
      8. org.restlet.Filter.handle(Filter.java:135)
      9. org.restlet.Router.handle(Router.java:445)
      9 frames
    7. Nexus Core
      RetargetableRestlet.handle
      1. org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33)
      1 frame
    8. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.doHandle(Filter.java:105)
      2. org.restlet.Filter.handle(Filter.java:135)
      3. org.restlet.Filter.doHandle(Filter.java:105)
      3 frames
    9. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89)
      1 frame
    10. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:135)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      3 frames
    11. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98)
      1 frame
    12. org.restlet
      Filter.handle
      1. org.restlet.Application.handle(Application.java:294)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Router.handle(Router.java:445)
      5. org.restlet.Filter.doHandle(Filter.java:105)
      6. org.restlet.Filter.handle(Filter.java:135)
      7. org.restlet.Router.handle(Router.java:445)
      8. org.restlet.Filter.doHandle(Filter.java:105)
      9. org.restlet.Filter.handle(Filter.java:135)
      9 frames
    13. com.noelios.restlet
      ComponentHelper.handle
      1. com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120)
      1 frame
    14. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:231)
      2. org.restlet.Server.handle(Server.java:282)
      2 frames
    15. com.noelios.restlet
      ServerServlet.service
      1. com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100)
      2. com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94)
      3. com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399)
      3 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    17. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
      2 frames
    18. org.jsecurity.web
      JSecurityFilter.doFilterInternal
      1. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52)
      2. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97)
      3. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123)
      4. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174)
      5. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      6. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:97)
      7. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:123)
      8. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174)
      9. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      10. org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:378)
      10 frames
    19. Nexus Core
      NexusJSecurityFilter.doFilterInternal
      1. org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:69)
      1 frame
    20. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:174)
      1 frame
    21. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      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:729)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      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:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    22. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      1 frame