java.io.IOException: PUT operation to URL http://<server ip>/artifactory/<repo>/com/<company>/<package>_2.11/1.0/<package>_2.11-1.0.jar failed with status code 301: Moved Permanently

Stack Overflow | GilZ | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This bug happens from SDK 8 b117 to SDK 8 b122, try updating to 122 or further to fix it.
    via GitHub by imeredith
  2. 0

    sbt publish to Artifactory failed with status code 301: Moved Permanently

    Stack Overflow | 4 months ago | GilZ
    java.io.IOException: PUT operation to URL http://<server ip>/artifactory/<repo>/com/<company>/<package>_2.11/1.0/<package>_2.11-1.0.jar failed with status code 301: Moved Permanently
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    SBT Publish only when version does not exist

    Stack Overflow | 2 years ago | Peter Souter
    java.io.IOException: destination file exists and overwrite == false
  5. 0

    [error] (*:publishSigned) java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/com/flipkart/connekt/concord_2.11/0.2.0/concord_2.11-0.2.0.pom was refused by the server: Unauthorized [error] Total time: 47 s, completed Nov 10, 2016 2:38:15 PM > last *:publishSigned java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/com/flipkart/connekt/concord_2.11/0.2.0/concord_2.11-0.2.0.pom was refused by the server: Unauthorized at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:79) at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:264) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150) at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84) at sbt.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:243) at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) at sbt.ConvertResolver$ChecksumFriendlyURLResolver$class.put(ConvertResolver.scala:81) at sbt.ConvertResolver$$anonfun$defaultConvert$1$PluginCapableResolver$1.put(ConvertResolver.scala:115) at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216) at sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:362) at sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:361) at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771) at sbt.IvyActions$.publish(IvyActions.scala:361) at sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply$mcV$sp(IvyActions.scala:124) at sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:124) at sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:124) at sbt.IvyActions$.withChecksums(IvyActions.scala:133) at sbt.IvyActions$.sbt$IvyActions$$withChecksums(IvyActions.scala:128) at sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:124) at sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:117) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155) at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:132) at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57) at sbt.IvySbt$$anon$4.call(Ivy.scala:65) at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93) at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78) at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97) at xsbt.boot.Using$.withResource(Using.scala:10) at xsbt.boot.Using$.apply(Using.scala:9) at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58) at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48) at xsbt.boot.Locks$.apply0(Locks.scala:31) at xsbt.boot.Locks$.apply(Locks.scala:28) at sbt.IvySbt.withDefaultLogger(Ivy.scala:65) at sbt.IvySbt.withIvy(Ivy.scala:127) at sbt.IvySbt.withIvy(Ivy.scala:124) at sbt.IvySbt$Module.withModule(Ivy.scala:155) at sbt.IvyActions$.publish(IvyActions.scala:117) at sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1298) at sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1297) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:235) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [error] (*:publishSigned) java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/com/flipkart/connekt/concord_2.11/0.2.0/concord_2.11-0.2.0.pom was refused by the server: Unauthorized

    Sonatype JIRA | 6 months ago | Durga Sahoo
    java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/com/flipkart/connekt/concord_2.11/0.2.0/concord_2.11-0.2.0.pom was refused by the server: Unauthorized

  1. gpgekko 1 times, last 4 months ago
2 unregistered visitors
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.io.IOException

    PUT operation to URL http://<server ip>/artifactory/<repo>/com/<company>/<package>_2.11/1.0/<package>_2.11-1.0.jar failed with status code 301: Moved Permanently

    at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode()
  2. Apache Ivy
    URLRepository.put
    1. org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82)
    2. org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:264)
    3. org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
    4. org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
    4 frames
  3. SBT
    ConvertResolver$LocalIfFileRepo.put
    1. sbt.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:243)
    1 frame
  4. Apache Ivy
    AbstractRepository.put
    1. org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
    1 frame
  5. SBT
    ConvertResolver$$anonfun$defaultConvert$1$PluginCapableResolver$1.put
    1. sbt.ConvertResolver$ChecksumFriendlyURLResolver$class.put(ConvertResolver.scala:81)
    2. sbt.ConvertResolver$$anonfun$defaultConvert$1$PluginCapableResolver$1.put(ConvertResolver.scala:115)
    2 frames
  6. Apache Ivy
    RepositoryResolver.publish
    1. org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
    1 frame
  7. SBT
    IvyActions$$anonfun$publish$3.apply
    1. sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:336)
    2. sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:335)
    2 frames
  8. Scala
    TraversableLike$WithFilter.foreach
    1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
    2. scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
    3. scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
    4. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
    4 frames
  9. SBT
    IvySbt$$anon$4.call
    1. sbt.IvyActions$.publish(IvyActions.scala:335)
    2. sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply$mcV$sp(IvyActions.scala:121)
    3. sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:121)
    4. sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:121)
    5. sbt.IvyActions$.withChecksums(IvyActions.scala:130)
    6. sbt.IvyActions$.sbt$IvyActions$$withChecksums(IvyActions.scala:125)
    7. sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:121)
    8. sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:114)
    9. sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
    10. sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
    11. sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:132)
    12. sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
    13. sbt.IvySbt$$anon$4.call(Ivy.scala:65)
    13 frames
  10. SBT Launcher
    Locks$.apply
    1. xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
    2. xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
    3. xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
    4. xsbt.boot.Using$.withResource(Using.scala:10)
    5. xsbt.boot.Using$.apply(Using.scala:9)
    6. xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
    7. xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
    8. xsbt.boot.Locks$.apply0(Locks.scala:31)
    9. xsbt.boot.Locks$.apply(Locks.scala:28)
    9 frames
  11. SBT
    Classpaths$$anonfun$publishTask$1.apply
    1. sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
    2. sbt.IvySbt.withIvy(Ivy.scala:127)
    3. sbt.IvySbt.withIvy(Ivy.scala:124)
    4. sbt.IvySbt$Module.withModule(Ivy.scala:155)
    5. sbt.IvyActions$.publish(IvyActions.scala:114)
    6. sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1283)
    7. sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1282)
    7 frames
  12. Scala
    Function1$$anonfun$compose$1.apply
    1. scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
    2. scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34)
    3. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    3 frames
  13. SBT
    $tilde$greater$$anonfun$$u2219$1.apply
    1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
    1 frame
  14. sbt Task system
    Transform$$anon$4.work
    1. sbt.std.Transform$$anon$4.work(System.scala:63)
    1 frame
  15. SBT
    CompletionService$$anon$2.call
    1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
    3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    4. sbt.Execute.work(Execute.scala:235)
    5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
    7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
    8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
    8 frames
  16. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    6. java.lang.Thread.run(Thread.java:745)[error]
    6 frames