Uploaded image for project: 'Dev - Nexus'
  1. Dev - Nexus
  2. NEXUS-4712

Do not propagate undefined factory for a capability back to UI

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: Capabilities
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 2

      Description

      When a capability factory does not exist do not propagate the exception back to UI

      jvm 1    | ERROR [ities?undefined] nexus - Could not dispatch event: Added capability configuration {id='125ddbe6925cf22a', type='smartproxy.connector', enabled='true', description='Smart-proxy connector: tcp://localhost:9090'} to handler [wrapper public void org.sonatype.nexus.plugins.capabilities.internal.config.CapabilityConfigurationEventsHandler.handle(org.sonatype.nexus.plugins.capabilities.internal.config.CapabilityConfigurationEvent$Added)]
      jvm 1    | java.lang.reflect.InvocationTargetException: null
      jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]
      jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29]
      jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29]
      jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.guava.EventHandler.handleEvent(EventHandler.java:68) ~[nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.guava.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) ~[nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.guava.EventBus.dispatch(EventBus.java:315) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.DefaultNexusEventBus$1.dispatchQueuedEvents(DefaultNexusEventBus.java:77) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.guava.EventBus.post(EventBus.java:266) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.eventbus.internal.DefaultNexusEventBus.post(DefaultNexusEventBus.java:104) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.plugins.capabilities.internal.config.DefaultCapabilityConfiguration.add(DefaultCapabilityConfiguration.java:129) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.plugins.capabilities.internal.rest.CapabilitiesPlexusResource.post(CapabilitiesPlexusResource.java:179) [nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.plexus.rest.resource.RestletResource.acceptRepresentation(RestletResource.java:283) [plexus-restlet-bridge-1.18-20111207.210255-15.jar:na]
      jvm 1    | 	at org.sonatype.nexus.rest.NexusRestletResource.acceptRepresentation(NexusRestletResource.java:77) [nexus-rest-api-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.restlet.resource.Resource.post(Resource.java:688) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.resource.Resource.handlePost(Resource.java:537) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Finder.handle(Finder.java:357) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Router.handle(Router.java:504) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Router.handle(Router.java:504) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) [plexus-restlet-bridge-1.18-20111207.210255-15.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Application.handle(Application.java:341) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Router.handle(Router.java:504) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Router.handle(Router.java:504) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.doHandle(Filter.java:150) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Filter.handle(Filter.java:195) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Component.handle(Component.java:673) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at org.restlet.Server.handle(Server.java:331) [org.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) [com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881) [com.noelios.restlet.ext.servlet-1.1.6-SONATYPE-5348-V4.jar:na]
      jvm 1    | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5]
      jvm 1    | 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:74) [shiro-web-1.1.0.jar:na]
      jvm 1    | 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) [jetty-security-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.Server.handle(Server.java:345) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801) [jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224) [jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) [jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) [jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) [jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) [jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
      jvm 1    | 	at java.lang.Thread.run(Thread.java:680) [na:1.6.0_29]
      jvm 1    | Caused by: java.lang.RuntimeException: No factory found for a capability of type smartproxy.connector
      jvm 1    | 	at org.sonatype.nexus.plugins.capabilities.internal.DefaultCapabilityRegistry.create(DefaultCapabilityRegistry.java:90) ~[nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	at org.sonatype.nexus.plugins.capabilities.internal.config.CapabilityConfigurationEventsHandler.handle(CapabilityConfigurationEventsHandler.java:57) ~[nexus-capabilities-plugin-1.10.0-SNAPSHOT.jar:na]
      jvm 1    | 	... 81 common frames omitted
      

        Attachments

          Activity

            People

            • Assignee:
              alin Alin Dreghiciu
              Reporter:
              alin Alin Dreghiciu
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: