org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request

Sonatype JIRA | Rich Seddon | 6 years ago
  1. 0

    Due to a server crash, a corrupt proxy attributes file for a snapshot pom file was written out, it only had this content: {code} <file {code} After this the snapshot could not be downloaded from Nexus. We should be able to recover from this situation. Also, note that there is no stack trace logged for the NPE. This made it much harder to diagnose the problem. {noformat} 2010-11-03 02:40:24.068 WARN [15327@qtp-14519821-3984:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 02:40:24.082 WARN [15327@qtp-14519821-3984:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 02:40:24.082 WARN [15327@qtp-14519821-3984:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 02:40:24.082 WARN [15327@qtp-14519821-3984:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 02:40:49.159 WARN [32703486@qtp-14519821-3985:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 02:40:49.159 WARN [32703486@qtp-14519821-3985:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 02:40:49.159 WARN [32703486@qtp-14519821-3985:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 02:40:49.167 WARN [15302712@qtp-14519821-3987:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 02:40:49.167 WARN [15302712@qtp-14519821-3987:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 02:40:49.167 WARN [15302712@qtp-14519821-3987:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 02:40:51.480 WARN [15302712@qtp-14519821-3987:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 02:40:51.480 WARN [15302712@qtp-14519821-3987:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 02:40:51.480 WARN [15302712@qtp-14519821-3987:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 02:41:34.151 WARN [5147674@qtp-14519821-3988:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 02:41:34.151 WARN [5147674@qtp-14519821-3988:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 02:41:34.151 WARN [5147674@qtp-14519821-3988:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 03:06:48.266 WARN [26009324@qtp-14519821-4020:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 03:06:48.266 WARN [26009324@qtp-14519821-4020:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 03:06:48.266 WARN [26009324@qtp-14519821-4020:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 03:06:48.828 WARN [26009324@qtp-14519821-4020:] - org.restlet.Component.Server: An exception occured writing the response entity: null 2010-11-03 03:06:48.828 WARN [26009324@qtp-14519821-4020:] - org.mortbay.log: Committed before 500 An exception occured writing the response entity 2010-11-03 03:06:48.828 WARN [26009324@qtp-14519821-4020:] - org.restlet.Component.Server: Error while handling an HTTP server call: Committed 2010-11-03 03:30:04.989 ERROR [7400453@qtp-14519821-4036:] - org.sonatype.nexus.rest.repositories.RepositoryContentPlexusResource: Got exception during processing request "GET http://sdcgrepo.corp.intuit.net/nexus/service/local/repositories/ENG.CTG.Intuit-Snapshots/content/com/intuit/ctg/formset/ty10/TTX_MDI/2010.0.0.0-SNAPSHOT/": java.lang.NullPointerException 2010-11-03 03:30:05.062 ERROR [7400453@qtp-14519821-4036:] - org.sonatype.nexus.error.reporting.DefaultErrorReportingManager: Detected Error in Nexus org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:801) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:150) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.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: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.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 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) Caused by: java.lang.NullPointerException 2010-11-03 03:39:02.379 ERROR [28987631@qtp-14519821-4027:] - org.sonatype.nexus.rest.repositories.RepositoryContentPlexusResource: Got exception during processing request "GET http://sdcgrepo.corp.intuit.net/nexus/service/local/repositories/ENG.CTG.Intuit-Snapshots/content/com/intuit/ctg/formset/ty10/TTX_MDI/2010.0.0.0-SNAPSHOT/": java.lang.NullPointerException {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request
  2. 0

    A local Nexus OSS instance will no longer deliver a specific POM artifact proxied from a remote (Nexus Professional 1.4.1) repository, reporting an internal error (HTTP status code 500). The artifact was unchanged since December 2009. I've tried deleting the artifact through the UI (which produces a dialog with a similar 500) and have also physically removed the file from the filesystem. I've also redeployed the artifact to the remote repository (as it was a -SNAPSHOT) and have even recreated the proxy repository pointing to a new local directory, but the error continues to appear. The stack trace follows. I see it's similar to the one reported in NEXUS-2534, but it's appearing in a later release than the one where that issue is reported fixed. 2010-03-23 12:38:52 ERROR [@qtp-15453627-4] - o.s.p.r.r.ManagedPl~:content - java.lang.NullPointerException at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3020) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1738) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1479) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at org.sonatype.nexus.proxy.attributes.DefaultAttributeStorage.doGetAttributes(DefaultAttributeStorage.java:300) at org.sonatype.nexus.proxy.attributes.DefaultAttributeStorage.getAttributes(DefaultAttributeStorage.java:179) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:138) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:327) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItem(DefaultFSLocalRepositoryStorage.java:361) at org.sonatype.nexus.proxy.repository.AbstractRepository.doRetrieveItem(AbstractRepository.java:1213) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:636) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:617) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:366) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:725) at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItems(AbstractGroupRepository.java:344) at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveMetadata(M2GroupRepository.java:161) at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:124) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:725) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:532) at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:175) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:134) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.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.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: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:2 30) 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.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 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) 2010-03-23 12:38:52 ERROR [@qtp-15453627-4] - o.s.n.e.r.ErrorRepo~ - Detected Error in Nexus org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:755) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:152) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.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.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: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.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 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)

    Sonatype JIRA | 7 years ago | Peter Janes
    org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request
  3. 0

    A local Nexus OSS instance will no longer deliver a specific POM artifact proxied from a remote (Nexus Professional 1.4.1) repository, reporting an internal error (HTTP status code 500). The artifact was unchanged since December 2009. I've tried deleting the artifact through the UI (which produces a dialog with a similar 500) and have also physically removed the file from the filesystem. I've also redeployed the artifact to the remote repository (as it was a -SNAPSHOT) and have even recreated the proxy repository pointing to a new local directory, but the error continues to appear. The stack trace follows. I see it's similar to the one reported in NEXUS-2534, but it's appearing in a later release than the one where that issue is reported fixed. 2010-03-23 12:38:52 ERROR [@qtp-15453627-4] - o.s.p.r.r.ManagedPl~:content - java.lang.NullPointerException at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3020) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1738) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1479) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at org.sonatype.nexus.proxy.attributes.DefaultAttributeStorage.doGetAttributes(DefaultAttributeStorage.java:300) at org.sonatype.nexus.proxy.attributes.DefaultAttributeStorage.getAttributes(DefaultAttributeStorage.java:179) at org.sonatype.nexus.proxy.attributes.DefaultAttributesHandler.fetchAttributes(DefaultAttributesHandler.java:138) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:327) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItem(DefaultFSLocalRepositoryStorage.java:361) at org.sonatype.nexus.proxy.repository.AbstractRepository.doRetrieveItem(AbstractRepository.java:1213) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:636) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:617) at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:366) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:725) at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItems(AbstractGroupRepository.java:344) at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveMetadata(M2GroupRepository.java:161) at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:124) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:725) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:532) at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:175) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:134) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.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.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: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:2 30) 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.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 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) 2010-03-23 12:38:52 ERROR [@qtp-15453627-4] - o.s.n.e.r.ErrorRepo~ - Detected Error in Nexus org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:755) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:152) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.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.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: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.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 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)

    Sonatype JIRA | 7 years ago | Peter Janes
    org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Here is the log: {noformat} jvm 2 | 2010-11-28 08:00:58 ERROR - o.s.n.s.f.a.NexusSe~ - Unable to lookup component jvm 2 | org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException jvm 2 | role: org.sonatype.plexus.appevents.ApplicationEventMulticaster jvm 2 | roleHint: jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:238) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:226) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:220) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.postAuthcEvent(NexusHttpAuthenticationFilter.java:260) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.executeAnonymousLogin(NexusHttpAuthenticationFilter.java:220) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:144) jvm 2 | at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) jvm 2 | at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) jvm 2 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) jvm 2 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 2 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) jvm 2 | at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) jvm 2 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 2 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) jvm 2 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) jvm 2 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) jvm 2 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) jvm 2 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) jvm 2 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) jvm 2 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) jvm 2 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) jvm 2 | at org.mortbay.jetty.Server.handle(Server.java:326) jvm 2 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) jvm 2 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) jvm 2 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) jvm 2 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) jvm 2 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) jvm 2 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) jvm 2 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) jvm 2 | Caused by: java.util.NoSuchElementException jvm 2 | at java.util.AbstractList$Itr.next(AbstractList.java:350) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234) jvm 2 | ... 28 more {noformat} also found log related to mac plugin: {noformat} 2010-11-28 07:10:30 ERROR [p-11915355-4119] - o.s.n.r.ContentPlex~ - Got exception during processing request "GET http://oss.sonatype.org/content/repositories/public/archetype-catalog.xml": Could not generate content: 2010-11-28 07:10:30 ERROR [p-11915355-4119] - o.s.n.e.r.DefaultEr~ - Detected Error in Nexus org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:730) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:150) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) at org.restlet.Filter.doHandle(Filter.java:150) ... ... Caused by: org.sonatype.nexus.proxy.LocalStorageException: Could not generate content: at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:734) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:521) at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:184) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:132) ... 72 more Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1098) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154) at org.sonatype.nexus.plugins.mac.DefaultMacPlugin.listArchetypes(DefaultMacPlugin.java:55) at org.sonatype.nexus.plugins.mac.DefaultMacPlugin.listArcherypesAsCatalog(DefaultMacPlugin.java:76) at org.sonatype.nexus.plugins.mac.ArchetypeContentGenerator.generateContent(ArchetypeContentGenerator.java:43) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:730) ... 75 more {noformat} There are also thousands lines of logs like this: Someone is keeping accessing a inexistent staging repo and causing these ERROR log: {noformat} 2010-11-28 07:27:57 ERROR [p-11915355-4135] - o.s.n.r.r.Repositor~ - Got exception during processing request "GET http://oss.sonatype.org/service/local/repositories/ukcomrobust-it-049/content/": ResourceStore of type Repository with id='ukcomrobust-it-049' not found! 2010-11-28 07:27:57 ERROR [p-11915355-4135] - o.s.n.r.r.Repositor~ - Got exception during processing request "GET http://oss.sonatype.org/service/local/repositories/ukcomrobust-it-049/content/": ResourceStore of type Repository with id='ukcomrobust-it-049' not found! {noformat}

    Sonatype JIRA | 6 years ago | Juven Xu
    org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request
  6. 0

    Here is the log: {noformat} jvm 2 | 2010-11-28 08:00:58 ERROR - o.s.n.s.f.a.NexusSe~ - Unable to lookup component jvm 2 | org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException jvm 2 | role: org.sonatype.plexus.appevents.ApplicationEventMulticaster jvm 2 | roleHint: jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:238) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:226) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:220) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.postAuthcEvent(NexusHttpAuthenticationFilter.java:260) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.executeAnonymousLogin(NexusHttpAuthenticationFilter.java:220) jvm 2 | at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:144) jvm 2 | at org.jsecurity.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:145) jvm 2 | at org.jsecurity.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:175) jvm 2 | at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:129) jvm 2 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 2 | at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) jvm 2 | at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) jvm 2 | at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) jvm 2 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) jvm 2 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) jvm 2 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) jvm 2 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) jvm 2 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) jvm 2 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) jvm 2 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) jvm 2 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) jvm 2 | at org.mortbay.jetty.Server.handle(Server.java:326) jvm 2 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) jvm 2 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) jvm 2 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) jvm 2 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) jvm 2 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) jvm 2 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) jvm 2 | at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) jvm 2 | Caused by: java.util.NoSuchElementException jvm 2 | at java.util.AbstractList$Itr.next(AbstractList.java:350) jvm 2 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234) jvm 2 | ... 28 more {noformat} also found log related to mac plugin: {noformat} 2010-11-28 07:10:30 ERROR [p-11915355-4119] - o.s.n.r.ContentPlex~ - Got exception during processing request "GET http://oss.sonatype.org/content/repositories/public/archetype-catalog.xml": Could not generate content: 2010-11-28 07:10:30 ERROR [p-11915355-4119] - o.s.n.e.r.DefaultEr~ - Detected Error in Nexus org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:730) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:150) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) at org.restlet.Filter.doHandle(Filter.java:150) ... ... Caused by: org.sonatype.nexus.proxy.LocalStorageException: Could not generate content: at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:734) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:521) at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:184) at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:132) ... 72 more Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1098) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154) at org.sonatype.nexus.plugins.mac.DefaultMacPlugin.listArchetypes(DefaultMacPlugin.java:55) at org.sonatype.nexus.plugins.mac.DefaultMacPlugin.listArcherypesAsCatalog(DefaultMacPlugin.java:76) at org.sonatype.nexus.plugins.mac.ArchetypeContentGenerator.generateContent(ArchetypeContentGenerator.java:43) at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:730) ... 75 more {noformat} There are also thousands lines of logs like this: Someone is keeping accessing a inexistent staging repo and causing these ERROR log: {noformat} 2010-11-28 07:27:57 ERROR [p-11915355-4135] - o.s.n.r.r.Repositor~ - Got exception during processing request "GET http://oss.sonatype.org/service/local/repositories/ukcomrobust-it-049/content/": ResourceStore of type Repository with id='ukcomrobust-it-049' not found! 2010-11-28 07:27:57 ERROR [p-11915355-4135] - o.s.n.r.r.Repositor~ - Got exception during processing request "GET http://oss.sonatype.org/service/local/repositories/ukcomrobust-it-049/content/": ResourceStore of type Repository with id='ukcomrobust-it-049' not found! {noformat}

    Sonatype JIRA | 6 years ago | Juven Xu
    org.restlet.resource.ResourceException: The server encountered an unexpected condition which prevented it from fulfilling the request

    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.restlet.resource.ResourceException

      The server encountered an unexpected condition which prevented it from fulfilling the request

      at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException()
    2. Nexus Core
      AbstractResourceStoreContentPlexusResource.get
      1. org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.handleException(AbstractResourceStoreContentPlexusResource.java:801)
      2. org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:150)
      2 frames
    3. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:276)
      1 frame
    4. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34)
      1 frame
    5. 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
    6. 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
    7. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.doHandle
      1. org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39)
      1 frame
    8. 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
    9. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
      1 frame
    10. 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
    11. 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
    12. org.restlet
      Application.handle
      1. org.restlet.Application.handle(Application.java:341)
      1 frame
    13. org.restlet.ext
      WadlApplication.handle
      1. org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705)
      1 frame
    14. 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
    15. com.noelios.restlet
      ChainHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      1 frame
    16. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:673)
      2. org.restlet.Server.handle(Server.java:331)
      2 frames
    17. 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
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    19. 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
    20. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52)
      2. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105)
      3. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135)
      4. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      5. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      6. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105)
      7. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135)
      8. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      9. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      10. org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
      11. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      11 frames
    21. 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:326)
      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
    22. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
      1 frame