java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Kristine O'Connor,
  • 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)
    via by 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 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)
    No Bugmate found.