incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hawthorne <>
Subject Solved: NoSuchMethodError with google guava/collections starting embedded cassandra service
Date Tue, 06 Sep 2011 22:58:44 GMT
I ran into this problem today.  It's common enough that it shows up in google, but not common
enough to have a documented resolution, so here's one.

    [junit] java.lang.NoSuchMethodError:;)Lcom/google/common/collect/ImmutableSet;
    [junit]     at org.apache.cassandra.db.DataTracker$View.replace(
    [junit]     at org.apache.cassandra.db.DataTracker.replace(
    [junit]     at org.apache.cassandra.db.DataTracker.addSSTables(
    [junit]     at org.apache.cassandra.db.ColumnFamilyStore.<init>(
    [junit]     at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
    [junit]     at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(
    [junit]     at org.apache.cassandra.db.Table.initCf(
    [junit]     at org.apache.cassandra.db.Table.<init>(
    [junit]     at
    [junit]     at org.apache.cassandra.db.SystemTable.checkHealth(
    [junit]     at org.apache.cassandra.service.AbstractCassandraDaemon.setup(
    [junit]     at org.apache.cassandra.service.AbstractCassandraDaemon.init(
    [junit]     at org.apache.cassandra.service.EmbeddedCassandraService.start(


I was creating a monolithic jar file that takes the contents of all component jar files and
puts them into one big jar, to simplify deployment of the cassandra client I'm writing.  One
of the component jars was also a monolithic jar and had the contents of google-collections
in it. guava is a superset of google collections, and that google-collections contents was
overwriting the expansion of the guava jar.

Removing the component jar file (which was an option in this case) solved the problem.

View raw message