twitter/finagle — Issue #62: java.lang.NoSuchMethodError: scala.runtime.RichLong.compare(J)I
Author: lifei
Created: 2012-02-21 06:32:07+00:00
State: open

i create a project following the link: http://www.fisharefriends.us/blog/2011-09-21-scala-plus-sbt-plus-finagle-plus-scalatest-plus-spring/, but i modify the version of sbt and scala, the version of sbt is 0.11.2 and the version of scala is 2.9.1.

I run the compile command in sbt, it works fine, and i run the 'run' EchoServer command in the sbt, it works fine too.

but i run the EchoClient, it throws an exception: java.lang.NoSuchMethodError: scala.runtime.RichLong.compare(J)I

java.lang.NoSuchMethodError: scala.runtime.RichLong.compare(J)I
at com.twitter.util.Duration.compare(Time.scala:350)
at com.twitter.util.Duration.compare(Time.scala:317)
at scala.math.Ordered$class.$greater(Ordered.scala:46)
at com.twitter.util.Duration.$greater(Time.scala:317)
at com.twitter.finagle.builder.ClientBuilder.com$twitter$finagle$builder$ClientBuilder$$buildPool(ClientBuilder
scala:619)
at com.twitter.finagle.builder.ClientBuilder$$anonfun$12.apply(ClientBuilder.scala:703)
at com.twitter.finagle.builder.ClientBuilder$$anonfun$12.apply(ClientBuilder.scala:681)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
at scala.collection.immutable.List.map(List.scala:45)
at com.twitter.finagle.builder.SocketAddressCluster.mkFactories(Cluster.scala:49)
at com.twitter.finagle.builder.ClientBuilder.internalBuildFactory(ClientBuilder.scala:681)
at com.twitter.finagle.builder.ClientBuilder.build(ClientBuilder.scala:789)
at EchoClient$.main(EchoExample.scala:25)
at EchoClient.main(EchoExample.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)