twitter-cassie : Error thrown on Cluster init

I am using playframework 2.1.0 and scala 2.10. I have added cassie 0.20.0 from the twitter repo.

This line of code

val cluster = new Cluster("localhost", 9160)

Seems to provoke the following exception:

Caused by: java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps;
        at com.twitter.cassie.Cluster.<init>(Cluster.scala:50) ~[cassie-core-0.20.0.jar:na]
        at cassandra.Cassandra$.<init>(Cassandra.scala:13) ~[na:na]
        at cassandra.Cassandra$.<clinit>(Cassandra.scala) ~[na:na]
        at controllers.Application$$anonfun$cassandraBloblAction$1.apply(Application.scala:41) ~[na:na]
        at controllers.Application$$anonfun$cassandraBloblAction$1.apply(Application.scala:40) ~[na:na]
        at play.api.mvc.ActionBuilder$$anonfun$apply$11.apply(Action.scala:254) ~[play_2.10.jar:2.1.0]

What am I doing wrong? Am I missing something? Using other constructors of Cluster leads to different exceptions of the same nature.

Answers


As of now : Turns out twitter-cassie is only for scala 2.8.

This very succinct thread says it all : https://groups.google.com/forum/?fromgroups=#!topic/twitter-cassie/NS9f1NnyU6E

Twitter has not switched to scala 2.10 yet and nobody has put the work for it yet. I solved my problem by using Astyanax from cassandra.


Need Your Help

How to find whether the MORE FRAGMENTS field is set or no?

c network-programming header protocols packet-sniffers

Given this header , how do I find if the MORE FRAGMENTS field is set or not..

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.