org.restlet.resource.ResourceException: ResourceStore of type Repository with id='public' not found!

Sonatype JIRA | 6 years ago
  1. 0

    # Install 1.9-M1 onboarding snapshot with all optional plugins, startup # Download the maven central index into Nexus # After index is downloaded, try a simple get on the archetype catalog.xml using admin credentials. See below {noformat} curl -uadmin:admin123 -v http://localhost:7444/nexus/service/local/nexus-archetype-plugin/public/archetype-catalog.xml * About to connect() to localhost port 7444 (#0) * Trying ::1... connected * Connected to localhost (::1) port 7444 (#0) * Server auth using Basic with user 'admin' > GET /nexus/service/local/nexus-archetype-plugin/public/archetype-catalog.xml HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4zMjE= > User-Agent: curl/7.21.1 (i386-apple-darwin9.8.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19 > Host: localhost:7444 > Accept: */* > < HTTP/1.1 500 Internal Server Error < Date: Tue, 16 Nov 2010 18:38:01 GMT < Content-Type: text/html; charset=ISO-8859-1 < Date: Tue, 16 Nov 2010 18:38:01 GMT < Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept < Server: Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V4 < Content-Length: 332 < <html> <head> <title>Status page</title> </head> <body> <h3>ResourceStore of type Repository with id='public' not found!</h3><p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1">here</a>.<br> Please continue your visit at our <a href="/">home page</a>. </p> </body> </html> * Connection #0 to host localhost left intact * Closing connection #0 jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - REQUEST /nexus/service/local/nexus-archetype-plugin/public/archetype-catalog.xml on org.mortbay.jetty.HttpConnection@cda761 jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@2f2c55e4 jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - session=null jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - servlet=nexus jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - chain=nexusFilter->nexus jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - servlet holder=nexus jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - call filter nexusFilter jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - call servlet nexus jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - o.s.n.p.a.DefaultNe~ - Checking isPermitted() with perms: [nexus:view:repository:public] jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - o.s.n.p.a.DefaultNe~ - Subject is authenticated, but has none of the needed permissions, rejecting. jvm 1 | 2010-11-16 13:33:30 ERROR [ype-catalog.xml] - o.s.n.e.r.DefaultEr~ - Detected Error in Nexus jvm 1 | org.restlet.resource.ResourceException: ResourceStore of type Repository with id='public' not found! jvm 1 | at org.sonatype.nexus.plugins.mac.api.MacRepositoryPlexusResource.get(MacRepositoryPlexusResource.java:149) jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276) jvm 1 | at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) jvm 1 | at org.restlet.resource.Resource.getRepresentation(Resource.java:302) jvm 1 | at org.restlet.resource.Resource.handleGet(Resource.java:464) jvm 1 | at org.restlet.Finder.handle(Finder.java:353) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) jvm 1 | at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) jvm 1 | at org.restlet.Application.handle(Application.java:341) jvm 1 | at org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) jvm 1 | at org.restlet.Component.handle(Component.java:673) jvm 1 | at org.restlet.Server.handle(Server.java:331) jvm 1 | at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) jvm 1 | at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) jvm 1 | at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881) jvm 1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) jvm 1 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:62) jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:109) jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:138) jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83) jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:67) jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359) jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275) jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) jvm 1 | at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343) jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272) jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) jvm 1 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) jvm 1 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) jvm 1 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) jvm 1 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) jvm 1 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) jvm 1 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) jvm 1 | at org.mortbay.jetty.Server.handle(Server.java:322) jvm 1 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) jvm 1 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) jvm 1 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) jvm 1 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) jvm 1 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) jvm 1 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) jvm 1 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) jvm 1 | Caused by: org.sonatype.nexus.rest.NoSuchRepositoryAccessException: ResourceStore of type Repository with id='public' not found! jvm 1 | at org.sonatype.nexus.rest.ProtectedRepositoryRegistry.checkAccessToRepository(ProtectedRepositoryRegistry.java:131) jvm 1 | at org.sonatype.nexus.rest.ProtectedRepositoryRegistry.getRepository(ProtectedRepositoryRegistry.java:57) jvm 1 | at org.sonatype.nexus.plugins.mac.api.MacRepositoryPlexusResource.get(MacRepositoryPlexusResource.java:105) jvm 1 | ... 74 more jvm 1 | 2010-11-16 13:33:30 DEBUG [ype-catalog.xml] - org.mortbay.log - RESPONSE /nexus/service/local/nexus-archetype-plugin/public/archetype-catalog.xml 500 jvm 1 | 2010-11-16 13:33:30 DEBUG [qtp-554977315-3] - org.mortbay.log - EOF jvm 1 | 2010-11-16 13:36:38 DEBUG [pool-2-thread-1] - c.s.n.l.DefaultPeri~ - Nexus License Valid. jvm 1 | 2010-11-16 13:38:01 DEBUG [ype-catalog.xml] - org.mortbay.log - REQUEST /nexus/service/local/nexus-archetype-plugin/public/archetype-catalog.xml on org.mortbay.jetty.HttpConnection@4c438fce jvm 1 | 2010-11-16 13:38:01 DEBUG [ype-catalog.xml] - org.mortbay.log - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@2f2c55e4 jvm 1 | 2010-11-16 13:38:01 DEBUG [ype-catalog.xml] - org.mortbay.log - session=null jvm 1 | 2010-11-16 13:38:01 DEBUG [ype-catalog.xml] - org.mortbay.log - servlet=nexus jvm 1 | 2010-11-16 13:38:01 DEBUG [ype-catalog.xml] - org.mortbay.log - chain=nexusFilter->nexus {noformat}

    Sonatype JIRA | 6 years ago
    org.restlet.resource.ResourceException: ResourceStore of type Repository with id='public' not found!
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.sonatype.nexus.rest.NoSuchRepositoryAccessException

      ResourceStore of type Repository with id='public' not found!

      at org.sonatype.nexus.rest.ProtectedRepositoryRegistry.checkAccessToRepository()
    2. Nexus Core
      ProtectedRepositoryRegistry.getRepository
      1. org.sonatype.nexus.rest.ProtectedRepositoryRegistry.checkAccessToRepository(ProtectedRepositoryRegistry.java:131)
      2. org.sonatype.nexus.rest.ProtectedRepositoryRegistry.getRepository(ProtectedRepositoryRegistry.java:57)
      2 frames
    3. org.sonatype.nexus
      MacRepositoryPlexusResource.get
      1. org.sonatype.nexus.plugins.mac.api.MacRepositoryPlexusResource.get(MacRepositoryPlexusResource.java:105)
      1 frame
    4. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276)
      1 frame
    5. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34)
      1 frame
    6. org.restlet.resource
      Resource.handleGet
      1. org.restlet.resource.Resource.getRepresentation(Resource.java:302)
      2. org.restlet.resource.Resource.handleGet(Resource.java:464)
      2 frames
    7. org.restlet
      Filter.doHandle
      1. org.restlet.Finder.handle(Finder.java:353)
      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
    8. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.doHandle
      1. org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39)
      1 frame
    9. 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
    10. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
      1 frame
    11. 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
    12. 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
    13. org.restlet
      Application.handle
      1. org.restlet.Application.handle(Application.java:341)
      1 frame
    14. org.restlet.ext
      WadlApplication.handle
      1. org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705)
      1 frame
    15. 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
    16. com.noelios.restlet
      ChainHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      1 frame
    17. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:673)
      2. org.restlet.Server.handle(Server.java:331)
      2 frames
    18. 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:881)
      3 frames
    19. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    20. 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:1157)
      2 frames
    21. Shiro
      OncePerRequestFilter.doFilter
      1. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:62)
      2. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:109)
      3. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:138)
      4. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
      5. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:67)
      6. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
      7. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
      8. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
      9. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
      10. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343)
      11. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
      12. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
      12 frames
    22. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
      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:765)
      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:322)
      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:539)
      13. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      14. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      15. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      15 frames
    23. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
      1 frame