java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized

JFrog JIRA | Michał Staruch | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After creating local user on Artifactory side, and verifying it's working on Manage Artifactory Servers panel on Bamboo side ({{(/) Connection successful!}} test result) I am unable to get the same credentials working on the Artifactory Maven 3 task level. Credentials I use have permissions to deploy the artifacts to the all available repositories. Stack trace from catalina.out on Bamboo side: {noformat}2015-03-27 09:58:23,404 ERROR [http-bio-8443-exec-34] [ServerConfigManager] Error while retrieving resolving repository list from: https://mvn.local/artifactory java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:647) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getRepositoriesList(ArtifactoryBuildInfoClient.java:192) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getVirtualRepositoryKeys(ArtifactoryBuildInfoClient.java:175) at org.jfrog.bamboo.admin.ServerConfigManager.getResolvingRepos(ServerConfigManager.java:232) at org.jfrog.bamboo.admin.ArtifactoryConfigServlet.doGet(ArtifactoryConfigServlet.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) ...{noformat}

    JFrog JIRA | 2 years ago | Micha?? Staruch
    java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized
  2. 0

    After creating local user on Artifactory side, and verifying it's working on Manage Artifactory Servers panel on Bamboo side ({{(/) Connection successful!}} test result) I am unable to get the same credentials working on the Artifactory Maven 3 task level. Credentials I use have permissions to deploy the artifacts to the all available repositories. Stack trace from catalina.out on Bamboo side: {noformat}2015-03-27 09:58:23,404 ERROR [http-bio-8443-exec-34] [ServerConfigManager] Error while retrieving resolving repository list from: https://mvn.local/artifactory java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:647) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getRepositoriesList(ArtifactoryBuildInfoClient.java:192) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getVirtualRepositoryKeys(ArtifactoryBuildInfoClient.java:175) at org.jfrog.bamboo.admin.ServerConfigManager.getResolvingRepos(ServerConfigManager.java:232) at org.jfrog.bamboo.admin.ArtifactoryConfigServlet.doGet(ArtifactoryConfigServlet.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) ...{noformat}

    JFrog JIRA | 2 years ago | Michał Staruch
    java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized

    Root Cause Analysis

    1. java.io.IOException

      Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized

      at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException()
    2. org.jfrog.build
      ArtifactoryBuildInfoClient.getVirtualRepositoryKeys
      1. org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:647)
      2. org.jfrog.build.client.ArtifactoryBuildInfoClient.getRepositoriesList(ArtifactoryBuildInfoClient.java:192)
      3. org.jfrog.build.client.ArtifactoryBuildInfoClient.getVirtualRepositoryKeys(ArtifactoryBuildInfoClient.java:175)
      3 frames
    3. org.jfrog.bamboo
      ArtifactoryConfigServlet.doGet
      1. org.jfrog.bamboo.admin.ServerConfigManager.getResolvingRepos(ServerConfigManager.java:232)
      2. org.jfrog.bamboo.admin.ArtifactoryConfigServlet.doGet(ArtifactoryConfigServlet.java:94)
      2 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames