[error] (test:executeTests) java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;

793 views
Skip to first unread message

Arun Mehta

unread,
Aug 1, 2014, 5:38:38 PM8/1/14
to simple-b...@googlegroups.com
I have been dealing with this error for the past couple of days now.

Scala version:

Scala code runner version 2.10.3

Sbt version:

sbt launcher version 0.13.5

Java version (if it matters):

java version "1.7.0_45"

-----------------------------------------
build.sbt file:

version := "0.1"

scalaVersion := "2.10.3"

resolvers ++= Seq(
  "spray" at "http://repo.spray.io",
  "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
)

libraryDependencies ++= Seq(
  "io.spray" %% "spray-json" % "1.2.5",
  "com.typesafe.akka" %% "akka-actor" % "2.2.4",
  "com.typesafe.akka" %% "akka-slf4j" % "2.2.4",
  "com.typesafe.akka" %% "akka-testkit" % "2.2.4",
  "com.github.kxbmap" %% "configs" % "0.2.1",
  "junit" % "junit" % "4.8.1" % "test",
  "ch.qos.logback" % "logback-classic" % "1.0.13",
  "io.spray" % "spray-can" % "1.2.1",
  "io.spray" % "spray-routing" % "1.2.1",
  "io.spray" % "spray-testkit" % "1.2.1",
  "org.scalatest" % "scalatest_2.10" % "2.0" % "test",
  "com.typesafe.akka" %% "akka-testkit" % "2.1.4"% "test",
  "org.mockito" % "mockito-core" % "1.9.5",
  "org.specs2" %% "specs2" % "2.1.1" % "test"
)

I have tried removing ~/.ivy2 and ~/.sbt and I have tried using sbt clean, but I still run into this error.

Thanks for helping

Josh Suereth

unread,
Aug 2, 2014, 2:28:29 PM8/2/14
to simple-b...@googlegroups.com
This is generally from a binary incompatibility between libraries you're using.     Is this version spray on 2.10?  Spray isn't cross-versioned as most scala libraries, so it may be compiled against 2.9 or 2.11.

You can check this by looking in your target/resolution-cache/reports directory and see what scala library versions were evicted.



--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages