title: java.lang.NoClassDefFoundError: com/google/common/util/concurrent/FutureFallback
body: <p>I'm seeing the following error :</p>
  
  <pre><code>java.lang.NoClassDefFoundError: com/google/common/util/concurrent/FutureFallback
  </code></pre>
  
  <p>when the <code>cluster.connect()</code> is called :</p>
  
  <pre><code>            String hosts = CassandraClientUtil.getHost();
              String localDC = CassandraClientUtil.getLocalDC();
              Cluster cluster = null;
              if (StringUtils.isNotEmpty(localDC))
              {
                  cluster = Cluster.builder().addContactPoints(hosts.split(","))
                          .withCredentials(CassandraCopsComponentLogger.USER_NAME, CassandraCopsComponentLogger.AUTH_CODE)
                          .withQueryOptions(new QueryOptions().setConsistencyLevel(ConsistencyLevel.LOCAL_ONE))
                          .withLoadBalancingPolicy(new TokenAwarePolicy(DCAwareRoundRobinPolicy.builder().withLocalDc(localDC).build())).build();
              }
              else
              {
                  cluster = Cluster.builder().addContactPoints(hosts.split(","))
                          .withCredentials(CassandraCopsComponentLogger.USER_NAME, CassandraCopsComponentLogger.AUTH_CODE)
                          .withQueryOptions(new QueryOptions().setConsistencyLevel(ConsistencyLevel.LOCAL_ONE)).build();
              }
  
              Session session = cluster.connect();
              CassandraCopsComponentLogger.mappingManager = new MappingManager(session);
  </code></pre>
  
  <p>The pom.xml has the following dependencies : </p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt;
                  &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
                  &lt;artifactId&gt;guava&lt;/artifactId&gt;
                  &lt;version&gt;16.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
              &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
              &lt;version&gt;2.1.9&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.netty&lt;/groupId&gt;
              &lt;artifactId&gt;netty&lt;/artifactId&gt;
              &lt;version&gt;3.9.0.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.codahale.metrics&lt;/groupId&gt;
              &lt;artifactId&gt;metrics-core&lt;/artifactId&gt;
              &lt;version&gt;3.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.7.5&lt;/version&gt;
          &lt;/dependency&gt;   
          &lt;dependency&gt;
              &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
              &lt;artifactId&gt;cassandra-driver-mapping&lt;/artifactId&gt;
              &lt;version&gt;2.1.9&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
    &lt;/dependencies&gt;
  </code></pre>
  
  <p>I saw a post on stackoverflow <a href="https://stackoverflow.com/questions/25803092/exception-in-main-thread-java-lang-noclassdeffounderror">here</a> 
  where they recommended to upgrade the guava version to 16.0.1 but that did not help me solve my problem. Some directions from here will be really helpful as I'm new to cassandra. To add more background this thing works as a standalone project, when I include this project as a maven dependency to some other project it raises this runtime error.</p>