java.lang.IllegalArgumentException

requirement failed: File scala-parser-combinators_2.11-1.0.4.jar was already registered with a different path (old path = /home/spark2/.ammonium/bootstrap/scala-parser-combinators_2.11-1.0.4.jar, new path = /home/spark2/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web434

Stack trace

  • java.lang.IllegalArgumentException: requirement failed: File scala-parser-combinators_2.11-1.0.4.jar was already registered with a different path (old path = /home/spark2/.ammonium/bootstrap/scala-parser-combinators_2.11-1.0.4.jar, new path = /home/spark2/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar at scala.Predef$.require(Predef.scala:224) at org.apache.spark.rpc.netty.NettyStreamManager.addJar(NettyStreamManager.scala:78) at org.apache.spark.SparkContext.liftedTree2$1(SparkContext.scala:1703) at org.apache.spark.SparkContext.addJar(SparkContext.scala:1702) at org.apache.spark.SparkContext$$anonfun$11.apply(SparkContext.scala:457) at org.apache.spark.SparkContext$$anonfun$11.apply(SparkContext.scala:457) at scala.collection.immutable.List.foreach(List.scala:381) at org.apache.spark.SparkContext.<init>(SparkContext.scala:457) at ammonite.Spark$SparkContext.<init>(Spark.scala:306) at ammonite.Spark.sc(Spark.scala:226) at cmd4$$user$$anonfun$1.apply(Main.scala:25) at cmd4$$user$$anonfun$1.apply(Main.scala:24) at cmd4$$user.<init>(Main.scala:26) at cmd4.<init>(Main.scala:30) at cmd4$.<init>(Main.scala:3) at cmd4$.<clinit>(Main.scala) at cmd4$Main$.$main(Main.scala:71) at cmd4$Main.$main(Main.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at ammonite.Interpreter$$anonfun$evaluate$1$$anonfun$apply$9.apply(Interpreter.scala:325) at ammonite.Interpreter$.evaluating(Interpreter.scala:291) at ammonite.Interpreter$$anonfun$evaluate$1.apply(Interpreter.scala:325) at ammonite.Interpreter$$anonfun$evaluate$1.apply(Interpreter.scala:324) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.Interpreter$$anon$5$$anonfun$flatMap$5.apply(Interpreter.scala:303) at ammonite.Interpreter$$anon$5$$anonfun$flatMap$5.apply(Interpreter.scala:302) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.Interpreter$$anon$4$$anonfun$flatMap$4.apply(Interpreter.scala:246) at ammonite.Interpreter$$anon$4$$anonfun$flatMap$4.apply(Interpreter.scala:240) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.Interpreter$$anon$3$$anonfun$flatMap$3$$anonfun$apply$7.apply(Interpreter.scala:232) at ammonite.Interpreter$$anon$3$$anonfun$flatMap$3$$anonfun$apply$7.apply(Interpreter.scala:232) at ammonite.util.Capture$.withOutAndErr(Capture.scala:62) at ammonite.util.Capture$.apply(Capture.scala:106) at ammonite.Interpreter$$anon$3$$anonfun$flatMap$3.apply(Interpreter.scala:232) at ammonite.Interpreter$$anon$3$$anonfun$flatMap$3.apply(Interpreter.scala:231) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1$$anonfun$apply$3.apply(Interpreter.scala:44) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:44) at ammonite.InterpreterAction$$anonfun$flatMap$1.apply(Interpreter.scala:43) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.Interpreter$$anon$2$$anonfun$flatMap$2.apply(Interpreter.scala:205) at ammonite.Interpreter$$anon$2$$anonfun$flatMap$2.apply(Interpreter.scala:204) at ammonite.InterpreterAction$$anon$1.apply(Interpreter.scala:57) at ammonite.ShellAction$$anonfun$interpret$1.apply(Shell.scala:110) at ammonite.ShellAction$$anonfun$interpret$1.apply(Shell.scala:103) at ammonite.ShellAction$$anon$1.apply(Shell.scala:50) at ammonite.ShellAction$$anonfun$flatMap$1.apply(Shell.scala:41) at ammonite.ShellAction$$anonfun$flatMap$1.apply(Shell.scala:40) at ammonite.ShellAction$$anon$1.apply(Shell.scala:50) at ammonite.ShellAction$$anon$2$$anonfun$flatMap$2.apply(Shell.scala:94) at ammonite.ShellAction$$anon$2$$anonfun$flatMap$2.apply(Shell.scala:87) at ammonite.ShellAction$$anon$1.apply(Shell.scala:50) at ammonite.ShellAction$$anonfun$flatMap$1$$anonfun$apply$2.apply(Shell.scala:41) at ammonite.ShellAction$$anonfun$flatMap$1$$anonfun$apply$2.apply(Shell.scala:41) at scala.util.Either$RightProjection.flatMap(Either.scala:522) at ammonite.ShellAction$$anonfun$flatMap$1.apply(Shell.scala:41) at ammonite.ShellAction$$anonfun$flatMap$1.apply(Shell.scala:40) at ammonite.ShellAction$$anon$1.apply(Shell.scala:50) at ammonite.AmmoniteApp.loop(Ammonite.scala:114) at ammonite.AmmoniteApp.delayedEndpoint$ammonite$AmmoniteApp$1(Ammonite.scala:127) at ammonite.AmmoniteApp$delayedInit$body.apply(Ammonite.scala:22) at scala.Function0$class.apply$mcV$sp(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at caseapp.App$$anonfun$apply$1.apply(App.scala:47) at caseapp.App$$anonfun$apply$1.apply(App.scala:46) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35) at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45) at caseapp.App$class.apply(App.scala:46) at ammonite.AmmoniteApp.apply(Ammonite.scala:22) at caseapp.AppOf.main(App.scala:121) at ammonite.Ammonite.main(Ammonite.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at coursier.Bootstrap.main(Bootstrap.java:412)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

rprp
Once,
tyson925tyson925
16 times, last one
gehelgehel
2 times, last one
melezovmelezov
2 times, last one
Unknown visitor
Unknown visitorOnce,
44 more bugmates