Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-12891

GET api/replications/ for remote-cache repository, causes 500 error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.14.1
    • Fix Version/s: 4.15.0, 5.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      4.14.1

    • Sprint:
      Leap 2

      Description

      When using curl /api/replications/ for a -cache remote repo, the following is shown:
      curl "http://localhost:8080/artifactory/api/replications/npm-remote-cache" causes:

      {
        "errors" : [ {
          "status" : 500,
          "message" : "An unexpected error has occurred, please check Artifactory logs for further details."
        } ]
      

      artifactory.log shows:

      2016-11-24 12:43:26,024 [pool-2-thread-11] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:48) null
      java.lang.NullPointerException: null
      	at org.artifactory.rest.services.replication.GetReplicationService.execute(GetReplicationService.java:55) ~[classes/:na]
      	at org.artifactory.rest.resource.ServiceExecutor.process(ServiceExecutor.java:38) ~[classes/:na]
      	at org.artifactory.rest.resource.BaseResource.runService(BaseResource.java:134) ~[classes/:na]
      	at org.artifactory.rest.resource.replication.ReplicationsResource.getReplication(ReplicationsResource.java:62) ~[classes/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_77]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_77]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) [jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) [jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) [jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) [jersey-server-1.19.jar:1.19]
      	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) [jersey-servlet-1.19.jar:1.19]
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) [jersey-servlet-1.19.jar:1.19]
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) [jersey-servlet-1.19.jar:1.19]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1219) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:200) [classes/:na]
      	at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:91) [classes/:na]
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:391) [classes/:na]
      	at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:270) [classes/:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:200) [classes/:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:160) [classes/:na]
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:61) [classes/:na]
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:111) [classes/:na]
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:424) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494) [jetty-security-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.Server.handle(Server.java:337) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1005) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:560) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:222) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:417) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:474) [jetty-io-7.0.2.v20100331.jar:7.0.2.v20100331]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
      

        Attachments

          Activity

            People

            • Assignee:
              yuvalr Yuval Reches
              Reporter:
              guyco Guy Cohen
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: