org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found!

Sonatype JIRA | Brian Demers | 5 years ago
  1. 0

    Sorry, was still writing the "lyrics" in notepad ;-) Here we go: Hi, we wrote a _nexus unzip plugin_ which extends AbstractShadowRepository. It's a virtual repository and behaves like a filter on a 'real' repository. You see all contents from it's master repository plus the content of zip files (actually non-recursive). We use repository groups as master repository for our unzip repos: {quote} _from conf/nexus.xml_ : <repository> <id>build.snapshots</id> <name>build.snapshots</name> <providerRole>org.sonatype.nexus.proxy.repository.GroupRepository</providerRole> <providerHint>maven2</providerHint> <localStatus>IN_SERVICE</localStatus> <notFoundCacheTTL>15</notFoundCacheTTL> <userManaged>true</userManaged> <exposed>true</exposed> <browseable>true</browseable> <writePolicy>READ_ONLY</writePolicy> <indexable>true</indexable> <localStorage> <provider>file</provider> </localStorage> <externalConfiguration> <memberRepositories> <memberRepository>deploy.milestones</memberRepository> <memberRepository>deploy.snapshots</memberRepository> <memberRepository>build.milestones.proxy</memberRepository> <memberRepository>build.snapshots.proxy</memberRepository> </memberRepositories> </externalConfiguration> </repository> : : <repository> <id>build.snapshots.unzip</id> <name>build.snapshots.unzip</name> <providerRole>com.sap.nexus.internal.plugin.UnzipRepository</providerRole> <providerHint>com.sap.nexus.plugin.DefaultUnzipRepository</providerHint> <localStatus>IN_SERVICE</localStatus> <notFoundCacheActive>true</notFoundCacheActive> <notFoundCacheTTL>15</notFoundCacheTTL> <userManaged>true</userManaged> <exposed>true</exposed> <browseable>true</browseable> <writePolicy>READ_ONLY</writePolicy> <searchable>true</searchable> <localStorage> <provider>file</provider> </localStorage> <externalConfiguration> <masterRepositoryId>build.snapshots</masterRepositoryId> <synchronizeAtStartup>false</synchronizeAtStartup> <useVirtualVersion>true</useVirtualVersion> </externalConfiguration> </repository> : {quote} Seems like during startup group repositories are added after shadow repositories, so, in fact the masterRepositoryId build.snapshots is not registered when the add for the shadow repository is called: {quote} _From logs/nexus.log_ : 2012-02-23 14:54:34 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='build.snapshots.proxy' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2012-02-23 14:54:34 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='deploy.releases' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2012-02-23 14:54:35 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='build.releases.proxy' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2012-02-23 14:54:35 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='3rd-party.releases.manual-uploads.hosted' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2012-02-23 14:54:35 ERROR [7-main-thread-1] - org.sonatype.nexus.DefaultNexus - Could not start Nexus, user configuration exception! org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found! at org.sonatype.nexus.proxy.repository.AbstractShadowRepositoryConfigurator.doApplyConfiguration(AbstractShadowRepositoryConfigurator.java:67) ~[nexus-proxy-2.0.jar:na] at com.sap.nexus.internal.plugin.UnzipRepositoryConfigurator.doApplyConfiguration(UnzipRepositoryConfigurator.java:19) ~[na:na] at org.sonatype.nexus.proxy.repository.AbstractRepositoryConfigurator.applyConfiguration(AbstractRepositoryConfigurator.java:60) ~[nexus-proxy-2.0.jar:na] at org.sonatype.nexus.configuration.AbstractConfigurable.doConfigure(AbstractConfigurable.java:232) ~[nexus-configuration-2.0.jar:na] at org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:168) ~[nexus-configuration-2.0.jar:na] at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:48) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:601) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:567) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:549) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:452) [nexus-app-2.0.jar:na] at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:414) [nexus-app-2.0.jar:na] : {quote} I noticed that the order of these repositories in nexus.xml is ignored which is o.k. The nature of a shadow repo is that the master repo must be accessible at least when I first try to read content (after the nexus startup). * If I register a list of repositories and I know that there are dependencies between these repositories why does nexus not just choose a 'better' order when adding repos from the configuration? ** via something like _shadowRepository.getMasterRepsitory()_ ** Or the infos from nexus.xml (see tag <masterRepositoryId>). * Or if the dependency cannot be retrieved maybe a kind of queue: did not succeed to add this time, maybe once again after all others? Be aware of circles... * Or simply have shadow repositories generally added after the groups. * Or have a certain shadow repository type which is added after the groups * Or first add all repos without dependency checks and in a second loop do check for all that the dependencies are fulfilled. * Or... Actually one cannot choose a group as master for our virtual UnzipRepo via UI - only proxy and hosted repos. This is maybe only because of the fact that the nexus startup's repo adding implementation can't cope with Shadow Repositories having groups as master? This restriction to non-group repos could then be removed, too. regards, Stephan PS: Btw. I wonder why nexus pro meanwhile does not provide some similar unzip functionality anyway: A special URL which allows to get single files out of a zipped file - if one has the privilege to read the zip file itself: http://nexus:8080/nexus/content/groups/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip => the zip file itself http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip => the zip file itself http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip/ => the root dir inside the zip file http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip/content.xml => the file content.xml from inside the zip

    Sonatype JIRA | 5 years ago | Brian Demers
    org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found!
  2. 0

    Sorry, was still writing the "lyrics" in notepad ;-) Here we go: Hi, we wrote a _nexus unzip plugin_ which extends AbstractShadowRepository. It's a virtual repository and behaves like a filter on a 'real' repository. You see all contents from it's master repository plus the content of zip files (actually non-recursive). We use repository groups as master repository for our unzip repos: {quote} _from conf/nexus.xml_ : <repository> <id>build.snapshots</id> <name>build.snapshots</name> <providerRole>org.sonatype.nexus.proxy.repository.GroupRepository</providerRole> <providerHint>maven2</providerHint> <localStatus>IN_SERVICE</localStatus> <notFoundCacheTTL>15</notFoundCacheTTL> <userManaged>true</userManaged> <exposed>true</exposed> <browseable>true</browseable> <writePolicy>READ_ONLY</writePolicy> <indexable>true</indexable> <localStorage> <provider>file</provider> </localStorage> <externalConfiguration> <memberRepositories> <memberRepository>deploy.milestones</memberRepository> <memberRepository>deploy.snapshots</memberRepository> <memberRepository>build.milestones.proxy</memberRepository> <memberRepository>build.snapshots.proxy</memberRepository> </memberRepositories> </externalConfiguration> </repository> : : <repository> <id>build.snapshots.unzip</id> <name>build.snapshots.unzip</name> <providerRole>com.sap.nexus.internal.plugin.UnzipRepository</providerRole> <providerHint>com.sap.nexus.plugin.DefaultUnzipRepository</providerHint> <localStatus>IN_SERVICE</localStatus> <notFoundCacheActive>true</notFoundCacheActive> <notFoundCacheTTL>15</notFoundCacheTTL> <userManaged>true</userManaged> <exposed>true</exposed> <browseable>true</browseable> <writePolicy>READ_ONLY</writePolicy> <searchable>true</searchable> <localStorage> <provider>file</provider> </localStorage> <externalConfiguration> <masterRepositoryId>build.snapshots</masterRepositoryId> <synchronizeAtStartup>false</synchronizeAtStartup> <useVirtualVersion>true</useVirtualVersion> </externalConfiguration> </repository> : {quote} Seems like during startup group repositories are added after shadow repositories, so, in fact the masterRepositoryId build.snapshots is not registered when the add for the shadow repository is called: {quote} _From logs/nexus.log_ : 2012-02-23 14:54:34 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='build.snapshots.proxy' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2012-02-23 14:54:34 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='deploy.releases' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2012-02-23 14:54:35 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='build.releases.proxy' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2012-02-23 14:54:35 INFO [7-main-thread-1] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='3rd-party.releases.manual-uploads.hosted' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2012-02-23 14:54:35 ERROR [7-main-thread-1] - org.sonatype.nexus.DefaultNexus - Could not start Nexus, user configuration exception! org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found! at org.sonatype.nexus.proxy.repository.AbstractShadowRepositoryConfigurator.doApplyConfiguration(AbstractShadowRepositoryConfigurator.java:67) ~[nexus-proxy-2.0.jar:na] at com.sap.nexus.internal.plugin.UnzipRepositoryConfigurator.doApplyConfiguration(UnzipRepositoryConfigurator.java:19) ~[na:na] at org.sonatype.nexus.proxy.repository.AbstractRepositoryConfigurator.applyConfiguration(AbstractRepositoryConfigurator.java:60) ~[nexus-proxy-2.0.jar:na] at org.sonatype.nexus.configuration.AbstractConfigurable.doConfigure(AbstractConfigurable.java:232) ~[nexus-configuration-2.0.jar:na] at org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:168) ~[nexus-configuration-2.0.jar:na] at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:48) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:601) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:567) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:549) ~[nexus-app-2.0.jar:na] at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:452) [nexus-app-2.0.jar:na] at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:414) [nexus-app-2.0.jar:na] : {quote} I noticed that the order of these repositories in nexus.xml is ignored which is o.k. The nature of a shadow repo is that the master repo must be accessible at least when I first try to read content (after the nexus startup). * If I register a list of repositories and I know that there are dependencies between these repositories why does nexus not just choose a 'better' order when adding repos from the configuration? ** via something like _shadowRepository.getMasterRepsitory()_ ** Or the infos from nexus.xml (see tag <masterRepositoryId>). * Or if the dependency cannot be retrieved maybe a kind of queue: did not succeed to add this time, maybe once again after all others? Be aware of circles... * Or simply have shadow repositories generally added after the groups. * Or have a certain shadow repository type which is added after the groups * Or first add all repos without dependency checks and in a second loop do check for all that the dependencies are fulfilled. * Or... Actually one cannot choose a group as master for our virtual UnzipRepo via UI - only proxy and hosted repos. This is maybe only because of the fact that the nexus startup's repo adding implementation can't cope with Shadow Repositories having groups as master? This restriction to non-group repos could then be removed, too. regards, Stephan PS: Btw. I wonder why nexus pro meanwhile does not provide some similar unzip functionality anyway: A special URL which allows to get single files out of a zipped file - if one has the privilege to read the zip file itself: http://nexus:8080/nexus/content/groups/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip => the zip file itself http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip => the zip file itself http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip/ => the root dir inside the zip file http://nexus:8080/nexus/content/unzip/repositoryname/xxx/yyy/1.0.1/yyy-1.0.1.zip/content.xml => the file content.xml from inside the zip

    Sonatype JIRA | 5 years ago | Brian Demers
    org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    # Add a repository view privilege to a role. # Remove the repository from Nexus. The view privilege remains in the role, and the role can't be updated anymore. {noformat} 2011-04-26 11:26:30 WARN [p-31388661-4030] - org.sonatype.security.rest.roles.RolePlexusResource - Configuration error! org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o privileges - Role ID 'abc' Invalid privilege id 'repository-thirdparty' found. at org.sonatype.security.realms.tools.DefaultConfigurationManager.updateRole(DefaultConfigurationManager.java:371) at org.sonatype.security.realms.tools.ResourceMergingConfigurationManager.updateRole(ResourceMergingConfigurationManager.java:417) at org.sonatype.security.authorization.xml.SecurityXmlAuthorizationManager.updateRole(SecurityXmlAuthorizationManager.java:196) at org.sonatype.security.rest.roles.RolePlexusResource.put(RolePlexusResource.java:147) at org.sonatype.plexus.rest.resource.RestletResource.storeRepresentation(RestletResource.java:316) at org.sonatype.nexus.rest.NexusRestletResource.storeRepresentation(NexusRestletResource.java:102) at org.restlet.resource.Resource.put(Resource.java:706) at org.restlet.resource.Resource.handlePut(Resource.java:603) at org.restlet.Finder.handle(Finder.java:359) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:344) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) 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:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) 2011-04-26 11:28:39 ERROR [p-31388661-4030] - org.sonatype.nexus.error.reporting.DefaultErrorReportingManager - Detected Error in Nexus {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o privileges - Role ID 'abc' Invalid privilege id 'repository-thirdparty' found.
  5. 0

    # Add a repository view privilege to a role. # Remove the repository from Nexus. The view privilege remains in the role, and the role can't be updated anymore. {noformat} 2011-04-26 11:26:30 WARN [p-31388661-4030] - org.sonatype.security.rest.roles.RolePlexusResource - Configuration error! org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o privileges - Role ID 'abc' Invalid privilege id 'repository-thirdparty' found. at org.sonatype.security.realms.tools.DefaultConfigurationManager.updateRole(DefaultConfigurationManager.java:371) at org.sonatype.security.realms.tools.ResourceMergingConfigurationManager.updateRole(ResourceMergingConfigurationManager.java:417) at org.sonatype.security.authorization.xml.SecurityXmlAuthorizationManager.updateRole(SecurityXmlAuthorizationManager.java:196) at org.sonatype.security.rest.roles.RolePlexusResource.put(RolePlexusResource.java:147) at org.sonatype.plexus.rest.resource.RestletResource.storeRepresentation(RestletResource.java:316) at org.sonatype.nexus.rest.NexusRestletResource.storeRepresentation(NexusRestletResource.java:102) at org.restlet.resource.Resource.put(Resource.java:706) at org.restlet.resource.Resource.handlePut(Resource.java:603) at org.restlet.Finder.handle(Finder.java:359) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:344) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) 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:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) 2011-04-26 11:28:39 ERROR [p-31388661-4030] - org.sonatype.nexus.error.reporting.DefaultErrorReportingManager - Detected Error in Nexus {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    org.sonatype.configuration.validation.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o privileges - Role ID 'abc' Invalid privilege id 'repository-thirdparty' found.

    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. org.sonatype.configuration.validation.InvalidConfigurationException

      Configuration is invalid! Validation errors follows: o shadowOf - ResourceStore of type Repository with id='build.snapshots' not found!

      at org.sonatype.nexus.proxy.repository.AbstractShadowRepositoryConfigurator.doApplyConfiguration()
    2. ${project.groupId}:${project.artifactId}
      AbstractShadowRepositoryConfigurator.doApplyConfiguration
      1. org.sonatype.nexus.proxy.repository.AbstractShadowRepositoryConfigurator.doApplyConfiguration(AbstractShadowRepositoryConfigurator.java:67)[nexus-proxy-2.0.jar:na]
      1 frame
    3. com.sap.nexus
      UnzipRepositoryConfigurator.doApplyConfiguration
      1. com.sap.nexus.internal.plugin.UnzipRepositoryConfigurator.doApplyConfiguration(UnzipRepositoryConfigurator.java:19)[na:na]
      1 frame
    4. ${project.groupId}:${project.artifactId}
      DefaultNexus.start
      1. org.sonatype.nexus.proxy.repository.AbstractRepositoryConfigurator.applyConfiguration(AbstractRepositoryConfigurator.java:60)[nexus-proxy-2.0.jar:na]
      2. org.sonatype.nexus.configuration.AbstractConfigurable.doConfigure(AbstractConfigurable.java:232)[nexus-configuration-2.0.jar:na]
      3. org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:168)[nexus-configuration-2.0.jar:na]
      4. org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:48)[nexus-app-2.0.jar:na]
      5. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:601)[nexus-app-2.0.jar:na]
      6. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:567)[nexus-app-2.0.jar:na]
      7. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:549)[nexus-app-2.0.jar:na]
      8. org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:452)[nexus-app-2.0.jar:na]
      9. org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:414)[nexus-app-2.0.jar:na]
      9 frames