java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized

JFrog JIRA | Matan Katz | 10 months ago
  1. 0

    Setting pull replication for remote repository with wrong credentials throws an exception to artifactory.log. The Exception occurs due to 401 response to the version request. {code} 2016-04-05 14:52:48,732 [art-exec-186] [ERROR] (o.a.a.c.BasicStatusHolder:201) Error occurred while performing folder replication for 'matankaol:': Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.executeRequestAndSetDetails(TargetServerInfoResolver.java:108) ~[classes/:na] at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.resolveTargetInfo(TargetServerInfoResolver.java:61) ~[classes/:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.resolveTargetInfo(BaseReplicationProducer.java:103) ~[classes/:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.run(BaseReplicationProducer.java:89) ~[classes/:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:68) [classes/:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:41) [classes/:na] at org.artifactory.addon.replication.core.ReplicationAddonImpl.performRemoteReplication(ReplicationAddonImpl.java:104) [classes/:na] at org.artifactory.repo.replication.RemoteReplicationJob.onExecute(RemoteReplicationJob.java:96) [classes/:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:50) [classes/:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:na] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [classes/:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65] {code}

    JFrog JIRA | 10 months ago | Matan Katz
    java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized
  2. 0

    Setting pull replication for remote repository with wrong credentials throws an exception to artifactory.log. The Exception occurs due to 401 response to the version request. {code} 2016-04-05 14:52:48,732 [art-exec-186] [ERROR] (o.a.a.c.BasicStatusHolder:201) Error occurred while performing folder replication for 'matankaol:': Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.executeRequestAndSetDetails(TargetServerInfoResolver.java:108) ~[classes/:na] at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.resolveTargetInfo(TargetServerInfoResolver.java:61) ~[classes/:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.resolveTargetInfo(BaseReplicationProducer.java:103) ~[classes/:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.run(BaseReplicationProducer.java:89) ~[classes/:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:68) [classes/:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:41) [classes/:na] at org.artifactory.addon.replication.core.ReplicationAddonImpl.performRemoteReplication(ReplicationAddonImpl.java:104) [classes/:na] at org.artifactory.repo.replication.RemoteReplicationJob.onExecute(RemoteReplicationJob.java:96) [classes/:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:50) [classes/:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:na] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [classes/:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65] {code}

    JFrog JIRA | 10 months ago | Matan Katz
    java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized
  3. 0

    Hi JFROG, When i try to configure the external remote repository from nexus for the first time, it works and i am able to see my repository getting reflected in the artifcatory. But when i click on the replication link given. It throws me an error saying HTTP 404. Error log Unable to identify target URL as an Artifactory instance: HTTP/1.1 404 Not Found java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 404 Not Found at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.executeRequestAndSetDetails(TargetServerInfoResolver.java:95) ~[artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.resolveTargetInfo(TargetServerInfoResolver.java:49) ~[artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.resolveTargetInfo(BaseReplicationProducer.java:92) ~[artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.BaseReplicationProducer.run(BaseReplicationProducer.java:78) ~[artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:56) [artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:29) [artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.addon.replication.core.ReplicationAddonImpl.performRemoteReplication(ReplicationAddonImpl.java:95) [artifactory-addon-replication-4.14.3.jar:na] at org.artifactory.repo.replication.RemoteReplicationJob.onExecute(RemoteReplicationJob.java:101) [artifactory-core-4.14.3.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:52) [artifactory-storage-common-4.14.3.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:na] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) [artifactory-storage-common-4.14.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]

    JFrog JIRA | 1 month ago | abhineet
    java.lang.IllegalArgumentException: Unable to identify target URL as an Artifactory instance: HTTP/1.1 404 Not Found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Properties of subclasses may have to be referenced in a different way. More on this here: https://goo.gl/FvnBXb
    via goo.gl
  6. 0
    samebug tip
    URI part of the request contains invalid characters. You may try to encode the path from the URI. Check RFC7230 and RFC3986 documentation below. https://www.ietf.org/rfc/rfc3986.txt and https://tools.ietf.org/html/rfc7230

    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. java.lang.IllegalArgumentException

      Unable to identify target URL as an Artifactory instance: HTTP/1.1 401 Unauthorized

      at org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.executeRequestAndSetDetails()
    2. org.artifactory.addon
      ReplicationAddonImpl.performRemoteReplication
      1. org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.executeRequestAndSetDetails(TargetServerInfoResolver.java:108)[classes/:na]
      2. org.artifactory.addon.replication.core.context.server.TargetServerInfoResolver.resolveTargetInfo(TargetServerInfoResolver.java:61)[classes/:na]
      3. org.artifactory.addon.replication.core.BaseReplicationProducer.resolveTargetInfo(BaseReplicationProducer.java:103)[classes/:na]
      4. org.artifactory.addon.replication.core.BaseReplicationProducer.run(BaseReplicationProducer.java:89)[classes/:na]
      5. org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:68)[classes/:na]
      6. org.artifactory.addon.replication.core.remote.RemoteReplicator.replicate(RemoteReplicator.java:41)[classes/:na]
      7. org.artifactory.addon.replication.core.ReplicationAddonImpl.performRemoteReplication(ReplicationAddonImpl.java:104)[classes/:na]
      7 frames
    3. org.artifactory.repo
      RemoteReplicationJob.onExecute
      1. org.artifactory.repo.replication.RemoteReplicationJob.onExecute(RemoteReplicationJob.java:96)[classes/:na]
      1 frame
    4. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:50)[classes/:na]
      1 frame
    5. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-2.2.1.jar:na]
      1 frame
    6. org.artifactory.schedule
      ArtifactoryConcurrentExecutor$RunnableWrapper.run
      1. org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102)[classes/:na]
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_65]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_65]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_65]
      3 frames