org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='nexus970-default' not found!

Sonatype JIRA | Marvin Herman Froeder | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Got this error on logs: 2009-08-07 08:55:48 ERROR [exus970-default] - o.s.n.p.e.EventInsp~ - Could not maintain indexing contexts! org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='nexus970-default' not found! at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository(DefaultRepositoryRegistry.java:124) at org.sonatype.nexus.index.DefaultIndexerManager.updateRepositoryIndexContext(DefaultIndexerManager.java:282) at org.sonatype.nexus.index.ProxyIndexerManager.updateRepositoryIndexContext(ProxyIndexerManager.java:290) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspectForIndexerManager(RepositoryRegistryRepositoryEventInspector.java:174) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspect(RepositoryRegistryRepositoryEventInspector.java:67) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.proxy.repository.AbstractRepository.commitChanges(AbstractRepository.java:159) at org.sonatype.nexus.configuration.AbstractConfigurable.onEvent(AbstractConfigurable.java:56) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyConfiguration(DefaultNexusConfiguration.java:211) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.saveConfiguration(DefaultNexusConfiguration.java:238) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyAndSaveConfiguration(DefaultNexusConfiguration.java:248) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.deleteRepository(DefaultNexusConfiguration.java:800) at org.sonatype.nexus.DefaultNexus.deleteRepository(DefaultNexus.java:323) at org.sonatype.nexus.rest.repositories.RepositoryPlexusResource.delete(RepositoryPlexusResource.java:294) at org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:357) at org.sonatype.nexus.rest.NexusRestletResource.removeRepresentations(NexusRestletResource.java:108) at org.restlet.resource.Resource.delete(Resource.java:224) at org.restlet.resource.Resource.handleDelete(Resource.java:384) at org.restlet.Finder.handle(Finder.java:361) 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:884) 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:1124) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:173) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) 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:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Was a reindex task scheduled, but the repo was deleted.

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='nexus970-default' not found!
  2. 0

    When deleting a proxy repository that is a member of a group repository you get an exception in the log. I don't see any other negative effects from this. == 2009-08-05 15:49:42 INFO [pool-1-thread-2] - o.s.n.f.FeedRecorder:default - Reindexing repository abc from path / and below. : Process started on Wed Aug 05 15:49:42 PDT 2009, finished successfully on Wed Aug 05 15:49:42 PDT 2009 2009-08-05 15:50:23 INFO [qtp0-5 ] - o.s.n.p.r.Repositor~:default - Removed repository ID='abc' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2009-08-05 15:50:23 INFO [qtp0-5 ] - o.s.n.c.v.Applicati~:default - Nexus configuration validated succesfully. 2009-08-05 15:50:23 INFO [qtp0-5 ] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-08-05 15:50:23 ERROR [qtp0-5 ] - o.s.n.p.e.EventInsp~ - Could not maintain indexing contexts! org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='abc' not found! at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository(DefaultRepositoryRegistry.java:124) at org.sonatype.nexus.index.DefaultIndexerManager.updateRepositoryIndexContext(DefaultIndexerManager.java:282) at org.sonatype.nexus.index.ProxyIndexerManager.updateRepositoryIndexContext(ProxyIndexerManager.java:290) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspectForIndexerManager(RepositoryRegistryRepositoryEventInspector.java:174) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspect(RepositoryRegistryRepositoryEventInspector.java:67) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.proxy.repository.AbstractRepository.commitChanges(AbstractRepository.java:159) at org.sonatype.nexus.configuration.AbstractConfigurable.onEvent(AbstractConfigurable.java:56) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyConfiguration(DefaultNexusConfiguration.java:211) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.saveConfiguration(DefaultNexusConfiguration.java:238) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyAndSaveConfiguration(DefaultNexusConfiguration.java:248) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.deleteRepository(DefaultNexusConfiguration.java:800) at org.sonatype.nexus.DefaultNexus.deleteRepository(DefaultNexus.java:323) at org.sonatype.nexus.rest.repositories.RepositoryPlexusResource.delete(RepositoryPlexusResource.java:294) at org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:357) at org.sonatype.nexus.rest.NexusRestletResource.removeRepresentations(NexusRestletResource.java:108) at org.restlet.resource.Resource.delete(Resource.java:224) at org.restlet.resource.Resource.handleDelete(Resource.java:384) at org.restlet.Finder.handle(Finder.java:361) 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:884) 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:1124) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) 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:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 2009-08-05 15:50:23 INFO [pool-1-thread-4] - o.s.n.f.FeedRecorder:default - Deleting folders with repository ID: abc : Process started on Wed Aug 05 15:50:23 PDT 2009, not yet finished. 2009-08-05 15:50:23 INFO [pool-1-thread-4] - o.s.n.DefaultNexus - Deleting folders of repository 'abc'. 2009-08-05 15:50:23 INFO [pool-1-thread-4] - o.s.n.f.FeedRecorder:default - Deleting folders with repository ID: abc : Process started on Wed Aug 05 15:50:23 PDT 2009, finished successfully on Wed Aug 05 15:50:23 PDT 2009 2

    Sonatype JIRA | 8 years ago | Rich Seddon
    org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='abc' not found!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I added a hosted M1 repo, then a hosted M2 repo, and finally a group M1 Repo. After this I see the following in the log: 2009-08-13 16:20:36 INFO [qtp0-2 ] - o.s.n.p.r.Repositor~:default - Added repository ID='m1' (contentClass='maven1', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2009-08-13 16:20:36 INFO [qtp0-2 ] - o.s.n.c.a.NexusConf~ - Applying Nexus Configuration... 2009-08-13 16:20:36 INFO [qtp0-2 ] - o.s.n.c.v.Applicati~:default - Nexus configuration validated succesfully. 2009-08-13 16:20:44 INFO [qtp0-6 ] - o.s.n.p.r.Repositor~:default - Added repository ID='m2' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2009-08-13 16:20:44 INFO [qtp0-6 ] - o.s.n.c.a.NexusConf~ - Applying Nexus Configuration... 2009-08-13 16:20:44 INFO [qtp0-6 ] - o.s.n.c.v.Applicati~:default - Nexus configuration validated succesfully. 2009-08-13 16:20:44 INFO [pool-1-thread-1] - o.s.n.f.FeedRecorder:default - Reindexing repository m2 from path null and below. : Process started on Thu Aug 13 16:20:44 PDT 2009, not yet finished. 2009-08-13 16:20:44 INFO [pool-1-thread-1] - o.s.n.i.ComposableI~:lucene - Publishing best index for repository m2 2009-08-13 16:20:44 INFO [pool-1-thread-1] - o.s.n.i.p.IndexPack~:default - Unable to read properties file, will force index regeneration 2009-08-13 16:20:44 INFO [pool-1-thread-1] - o.s.n.f.FeedRecorder:default - Reindexing repository m2 from path null and below. : Process started on Thu Aug 13 16:20:44 PDT 2009, finished successfully on Thu Aug 13 16:20:44 PDT 2009 2009-08-13 16:21:23 ERROR [qtp0-3 ] - o.s.n.p.e.EventInsp~ - Could not maintain indexing contexts! org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='m1-group' not found! at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository(DefaultRepositoryRegistry.java:136) at org.sonatype.nexus.index.DefaultIndexerManager.updateRepositoryIndexContext(DefaultIndexerManager.java:282) at org.sonatype.nexus.index.ProxyIndexerManager.updateRepositoryIndexContext(ProxyIndexerManager.java:290) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspectForIndexerManager(RepositoryRegistryRepositoryEventInspector.java:174) at org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspect(RepositoryRegistryRepositoryEventInspector.java:67) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.proxy.repository.AbstractRepository.commitChanges(AbstractRepository.java:162) at org.sonatype.nexus.DefaultNexus.addRepository(DefaultNexus.java:320) at org.sonatype.nexus.rest.groups.AbstractRepositoryGroupPlexusResource.createRepositoryGroup(AbstractRepositoryGroupPlexusResource.java:151) at org.sonatype.nexus.rest.groups.AbstractRepositoryGroupPlexusResource.createOrUpdateRepositoryGroup(AbstractRepositoryGroupPlexusResource.java:55) at org.sonatype.nexus.rest.groups.RepositoryGroupListPlexusResource.post(RepositoryGroupListPlexusResource.java:137) at org.sonatype.plexus.rest.resource.RestletResource.acceptRepresentation(RestletResource.java:284) at org.sonatype.nexus.rest.NexusRestletResource.acceptRepresentation(NexusRestletResource.java:58) at org.restlet.resource.Resource.post(Resource.java:688) at org.restlet.resource.Resource.handlePost(Resource.java:537) at org.restlet.Finder.handle(Finder.java:357) 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:884) 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:1124) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 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:766) 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:324) 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:741) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 2009-08-13 16:21:23 INFO [qtp0-3 ] - o.s.n.c.a.NexusConf~ - Applying Nexus Configuration... 2009-08-13 16:21:23 INFO [qtp0-3 ] - o.s.n.c.v.Applicati~:default - Nexus configuration validated succesfully. 2009-08-13 16:21:23 INFO [qtp0-3 ] - o.s.n.p.r.Repositor~:default - Added repository ID='m1-group' (contentClass='maven1', mainFacet='org.sonatype.nexus.proxy.repository.GroupRepository')

    Sonatype JIRA | 8 years ago | Rich Seddon
    org.sonatype.nexus.proxy.NoSuchRepositoryException: ResourceStore of type Repository with id='m1-group' not found!
  5. 0

    I upgraded RSO to 2.0-M1, got plenty of these in the logs, and 500's while requesting artifacts {noformat} jvm 1 | 2012-01-03 22:24:33 INFO [7-main-thread-1] - org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector - Could not write repository metadata! jvm 1 | org.sonatype.nexus.repository.metadata.MetadataHandlerException: java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map jvm 1 | at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:121) ~[nexus-repository-metadata-api-1.2.jar:na] jvm 1 | at org.sonatype.nexus.repository.metadata.DefaultRepositoryMetadataHandler.writeRepositoryMetadata(DefaultRepositoryMetadataHandler.java:94) ~[nexus-repository-metadata-api-1.2.jar:na] jvm 1 | at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.processRepository(NexusRepositoryMetadataEventInspector.java:201) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.repositories.metadata.NexusRepositoryMetadataEventInspector.inspect(NexusRepositoryMetadataEventInspector.java:86) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost$EventInspectorHandler.run(DefaultEventInspectorHost.java:181) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:127) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:135) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) [simple-event-multicaster-1.0.0.jar:na] jvm 1 | at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:501) [nexus-app-2.0-M1.jar:na] jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:419) [nexus-app-2.0-M1.jar:na] {noformat}

    Sonatype JIRA | 5 years ago | Brian Demers
    org.sonatype.nexus.repository.metadata.MetadataHandlerException: java.lang.ClassCastException: java.io.File cannot be cast to java.util.Map

    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.nexus.proxy.NoSuchRepositoryException

      ResourceStore of type Repository with id='nexus970-default' not found!

      at org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository()
    2. ${project.groupId}:${project.artifactId}
      DefaultRepositoryRegistry.getRepository
      1. org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.getRepository(DefaultRepositoryRegistry.java:124)
      1 frame
    3. Sonatype Nexus Indexer
      ProxyIndexerManager.updateRepositoryIndexContext
      1. org.sonatype.nexus.index.DefaultIndexerManager.updateRepositoryIndexContext(DefaultIndexerManager.java:282)
      2. org.sonatype.nexus.index.ProxyIndexerManager.updateRepositoryIndexContext(ProxyIndexerManager.java:290)
      2 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultEventInspectorHost.onEvent
      1. org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspectForIndexerManager(RepositoryRegistryRepositoryEventInspector.java:174)
      2. org.sonatype.nexus.events.RepositoryRegistryRepositoryEventInspector.inspect(RepositoryRegistryRepositoryEventInspector.java:67)
      3. org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48)
      4. org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62)
      4 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractSimpleEventMulticaster.notifyEventListeners
      1. org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)
      1 frame
    6. ${project.groupId}:${project.artifactId}
      AbstractConfigurable.onEvent
      1. org.sonatype.nexus.proxy.repository.AbstractRepository.commitChanges(AbstractRepository.java:159)
      2. org.sonatype.nexus.configuration.AbstractConfigurable.onEvent(AbstractConfigurable.java:56)
      2 frames
    7. ${project.groupId}:${project.artifactId}
      AbstractSimpleEventMulticaster.notifyEventListeners
      1. org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)
      1 frame
    8. ${project.groupId}:${project.artifactId}
      DefaultNexus.deleteRepository
      1. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyConfiguration(DefaultNexusConfiguration.java:211)
      2. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.saveConfiguration(DefaultNexusConfiguration.java:238)
      3. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.applyAndSaveConfiguration(DefaultNexusConfiguration.java:248)
      4. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.deleteRepository(DefaultNexusConfiguration.java:800)
      5. org.sonatype.nexus.DefaultNexus.deleteRepository(DefaultNexus.java:323)
      5 frames
    9. Nexus Core
      RepositoryPlexusResource.delete
      1. org.sonatype.nexus.rest.repositories.RepositoryPlexusResource.delete(RepositoryPlexusResource.java:294)
      1 frame
    10. ${project.groupId}:${project.artifactId}
      RestletResource.removeRepresentations
      1. org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:357)
      1 frame
    11. Nexus Core
      NexusRestletResource.removeRepresentations
      1. org.sonatype.nexus.rest.NexusRestletResource.removeRepresentations(NexusRestletResource.java:108)
      1 frame
    12. org.restlet.resource
      Resource.handleDelete
      1. org.restlet.resource.Resource.delete(Resource.java:224)
      2. org.restlet.resource.Resource.handleDelete(Resource.java:384)
      2 frames
    13. org.restlet
      Filter.doHandle
      1. org.restlet.Finder.handle(Finder.java:361)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      4. org.restlet.Router.handle(Router.java:504)
      5. org.restlet.Filter.doHandle(Filter.java:150)
      6. org.restlet.Filter.handle(Filter.java:195)
      7. org.restlet.Router.handle(Router.java:504)
      8. org.restlet.Filter.doHandle(Filter.java:150)
      9. org.restlet.Filter.handle(Filter.java:195)
      10. org.restlet.Filter.doHandle(Filter.java:150)
      10 frames
    14. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.doHandle
      1. org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39)
      1 frame
    15. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.handle(Filter.java:195)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      4. org.restlet.Filter.doHandle(Filter.java:150)
      5. org.restlet.Filter.handle(Filter.java:195)
      6. org.restlet.Filter.doHandle(Filter.java:150)
      6 frames
    16. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
      1 frame
    17. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:195)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      3 frames
    18. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      2. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
      2 frames
    19. org.restlet
      Application.handle
      1. org.restlet.Application.handle(Application.java:341)
      1 frame
    20. org.restlet.ext
      WadlApplication.handle
      1. org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705)
      1 frame
    21. org.restlet
      Filter.handle
      1. org.restlet.Filter.doHandle(Filter.java:150)
      2. org.restlet.Filter.handle(Filter.java:195)
      3. org.restlet.Router.handle(Router.java:504)
      4. org.restlet.Filter.doHandle(Filter.java:150)
      5. org.restlet.Filter.handle(Filter.java:195)
      6. org.restlet.Router.handle(Router.java:504)
      7. org.restlet.Filter.doHandle(Filter.java:150)
      8. org.restlet.Filter.handle(Filter.java:195)
      8 frames
    22. com.noelios.restlet
      ChainHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      1 frame
    23. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:673)
      2. org.restlet.Server.handle(Server.java:331)
      2 frames
    24. com.noelios.restlet
      ServerServlet.service
      1. com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
      2. com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
      3. com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884)
      3 frames
    25. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    26. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
      2 frames
    27. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:173)
      1 frame
    28. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      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:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      9. org.mortbay.jetty.Server.handle(Server.java:320)
      10. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      11. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      12. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
      13. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      14. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      15. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      15 frames
    29. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
      1 frame