java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;

DataStax JIRA | Lucian Mocanu | 2 years ago
  1. 0

    I'm getting an exception when using Guava dependencies other than 14.0.1. I've tried both shaded/unshaded versions in the pom: {code:xml} <dependency> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-core</artifactId> <version>2.1.6</version> <classifier>shaded</classifier> <exclusions> <exclusion> <groupId>io.netty</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-mapping</artifactId> <version>2.1.6</version> <exclusions> <exclusion> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-core</artifactId> </exclusion> </exclusions> </dependency> {code} {code:java} Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; at com.datastax.driver.core.Connection.initAsync(Connection.java:172) at com.datastax.driver.core.Connection$Factory.open(Connection.java:721) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190) at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1272) at com.datastax.driver.core.Cluster.init(Cluster.java:158) at com.datastax.driver.core.Cluster.connect(Cluster.java:248) {code}

    DataStax JIRA | 2 years ago | Lucian Mocanu
    java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
  2. 0

    I'm getting an exception when using Guava dependencies other than 14.0.1. I've tried both shaded/unshaded versions in the pom: {code:xml} <dependency> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-core</artifactId> <version>2.1.6</version> <classifier>shaded</classifier> <exclusions> <exclusion> <groupId>io.netty</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-mapping</artifactId> <version>2.1.6</version> <exclusions> <exclusion> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-core</artifactId> </exclusion> </exclusions> </dependency> {code} {code:java} Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; at com.datastax.driver.core.Connection.initAsync(Connection.java:172) at com.datastax.driver.core.Connection$Factory.open(Connection.java:721) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190) at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1272) at com.datastax.driver.core.Cluster.init(Cluster.java:158) at com.datastax.driver.core.Cluster.connect(Cluster.java:248) {code}

    DataStax JIRA | 2 years ago | Lucian Mocanu
    java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
  3. 0

    NoSuchMethodError when running on Hadoop but not when run locally

    Stack Overflow | 1 year ago | tom
    java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.withFallback(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureFallback;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running spark job using Yarn giving error:com.google.common.util.concurrent.Futures.withFallback

    Stack Overflow | 1 year ago | Abhinandan
    java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.withFallback(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureFallback;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
  6. 0

    Cassandra and Java EE

    Stack Overflow | 11 months ago | kinkajou
    java.lang.NoSuchMethodError: com.google.common.util.concurrent.Futures.withFallback(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureFallback;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.common.util.concurrent.Futures.transform(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;

      at com.datastax.driver.core.Connection.initAsync()
    2. DataStax Java Driver for Apache Cassandra - Core
      Cluster.connect
      1. com.datastax.driver.core.Connection.initAsync(Connection.java:172)
      2. com.datastax.driver.core.Connection$Factory.open(Connection.java:721)
      3. com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244)
      4. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190)
      5. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
      6. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1272)
      7. com.datastax.driver.core.Cluster.init(Cluster.java:158)
      8. com.datastax.driver.core.Cluster.connect(Cluster.java:248)
      8 frames