scala.MatchError: cache:publish-m2-local: /Users/dnw/.m2/repository (of class sbt.librarymanagement.MavenCache)

GitHub | dwijnand | 1 month ago
  1. 0

    Match errors due to changes in MavenRepository and MavenCache class hierarchy

    GitHub | 1 month ago | dwijnand
    scala.MatchError: cache:publish-m2-local: /Users/dnw/.m2/repository (of class sbt.librarymanagement.MavenCache)
  2. 0
    Upgrade play-plugins-redis to play-modules-redis. You may have to delete com.typesafe.plugin.RedisPlugin from play.plugins
  3. 0

    StringIndexOutOfBoundsException on both tree and graph

    GitHub | 4 years ago | hedefalk
    java.lang.StringIndexOutOfBoundsException: String index out of range: 168
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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 | 2 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
  6. 0

    After quite a long time without having to log into oss.sonatype.org, I forgot my password, and created a new one. Now I'am not able to publish to https://oss.sonatype.org/content/repositories/snapshots/io/kanaka/... nor https://oss.sonatype.org/content/repositories/releases/io/kanaka/... I use SBT with the sbt-pgp plugin (as advised here http://www.scala-sbt.org/release/docs/Using-Sonatype.html). I recently generated a new GPG key, but I don't think it has an incidence on the current problem. Here is the output I get : ➜ play-monadic-actions git:(master) sbt publish-signed 14:34 valentinkasas@Valentins-MBP [info] Loading global plugins from /Users/valentinkasas/.sbt/0.13/plugins [info] Loading project definition from /Users/valentinkasas/Work/play-monadic-actions/project [info] Set current project to play-monadic-actions (in build file:/Users/valentinkasas/Work/play-monadic-actions/) [info] Wrote /Users/valentinkasas/Work/play-monadic-actions/target/scala-2.11/play-monadic-actions_2.11-1.1.0-SNAPSHOT.pom [info] :: delivering :: io.kanaka#play-monadic-actions_2.11;1.1.0-SNAPSHOT :: 1.1.0-SNAPSHOT :: integration :: Tue Dec 15 14:34:25 CET 2015 [info] delivering ivy file to /Users/valentinkasas/Work/play-monadic-actions/target/scala-2.11/ivy-1.1.0-SNAPSHOT.xml Please enter PGP passphrase (or ENTER to abort): ************************ java.io.IOException: Access to URL https://oss.sonatype.org/content/repositories/snapshots/io/kanaka/play-monadic-actions_2.11/1.1.0-SNAPSHOT/play-monadic-actions_2.11-1.1.0-SNAPSHOT.jar.asc 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/content/repositories/snapshots/io/kanaka/play-monadic-actions_2.11/1.1.0-SNAPSHOT/play-monadic-actions_2.11-1.1.0-SNAPSHOT.jar.asc was refused by the server: Unauthorized

    Sonatype JIRA | 1 year ago | Valentin Kasas
    java.io.IOException: Access to URL https://oss.sonatype.org/content/repositories/snapshots/io/kanaka/play-monadic-actions_2.11/1.1.0-SNAPSHOT/play-monadic-actions_2.11-1.1.0-SNAPSHOT.jar.asc was refused by the server: Unauthorized

    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. scala.MatchError

      cache:publish-m2-local: /Users/dnw/.m2/repository (of class sbt.librarymanagement.MavenCache)

      at sbt.internal.librarymanagement.ConvertResolver$$anonfun$defaultConvert$1.applyOrElse()
    2. sbt.internal.librarymanagement
      ConvertResolver$$anonfun$defaultConvert$1.applyOrElse
      1. sbt.internal.librarymanagement.ConvertResolver$$anonfun$defaultConvert$1.applyOrElse(ConvertResolver.scala:117)
      2. sbt.internal.librarymanagement.ConvertResolver$$anonfun$defaultConvert$1.applyOrElse(ConvertResolver.scala:115)
      2 frames
    3. Scala
      AbstractPartialFunction.apply
      1. scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
      1 frame
    4. sbt.internal.librarymanagement
      IvySbt$$anonfun$mapResolvers$1$1.apply
      1. sbt.internal.librarymanagement.ConvertResolver$.apply(ConvertResolver.scala:112)
      2. sbt.internal.librarymanagement.IvySbt$$anonfun$mapResolvers$1$1.apply(Ivy.scala:279)
      3. sbt.internal.librarymanagement.IvySbt$$anonfun$mapResolvers$1$1.apply(Ivy.scala:279)
      3 frames
    5. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      6. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      7. scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
      8. scala.collection.AbstractTraversable.map(Traversable.scala:104)
      8 frames
    6. sbt.internal.librarymanagement
      IvySbt$.mapResolvers$1
      1. sbt.internal.librarymanagement.IvySbt$.mapResolvers$1(Ivy.scala:279)
      1 frame