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;

JIRA | Søren Vejrup Carlsen | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {code} SLF4J: Found binding in [jar:file:/usr/java/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/java/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/java/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lib/tika-app-1.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] 14-Sep-2016 17:52:41.429 INFO [localhost-startStop-1] dk.kb.webdanica.webapp.Environment.<init> Connected to NetarchiveSuite system with environmentname: WEBDANICA INFO Did not find Netty's native epoll transport in the classpath, defaulting to NIO. 14-Sep-2016 17:52:42.333 SEVERE [localhost-startStop-1] dk.kb.webdanica.webapp.Servlet.init dk.kb.webdanica.webapp.Servlet failed to initialize properly. 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; at com.datastax.driver.core.Connection.initAsync(Connection.java:178) at com.datastax.driver.core.Connection$Factory.open(Connection.java:739) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:253) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:201) at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1424) at com.datastax.driver.core.Cluster.init(Cluster.java:163) at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:334) at com.datastax.driver.core.Cluster.connect(Cluster.java:284) at dk.kb.webdanica.datamodel.Cassandra.<init>(Cassandra.java:28) at dk.kb.webdanica.datamodel.CassandraSeedDAO.<init>(CassandraSeedDAO.java:46) at dk.kb.webdanica.datamodel.CassandraSeedDAO.getInstance(CassandraSeedDAO.java:39) at dk.kb.webdanica.webapp.Configuration.initDb(Configuration.java:85) at dk.kb.webdanica.webapp.Configuration.<init>(Configuration.java:81) at dk.kb.webdanica.webapp.Configuration.getInstance(Configuration.java:40) at dk.kb.webdanica.webapp.Environment.<init>(Environment.java:274) at dk.kb.webdanica.webapp.Servlet.init(Servlet.java:54) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    JIRA | 7 months ago | Søren Vejrup Carlsen
    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;
  2. 0

    NoSuchMethodError when running on Hadoop but not when run locally

    Stack Overflow | 2 years 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;
  3. 0

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

    Stack Overflow | 2 years 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;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cassandra and Java EE

    Stack Overflow | 1 year 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;
  6. 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;

    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.withFallback(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureFallback;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:178)
      2. com.datastax.driver.core.Connection$Factory.open(Connection.java:739)
      3. com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:253)
      4. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:201)
      5. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
      6. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1424)
      7. com.datastax.driver.core.Cluster.init(Cluster.java:163)
      8. com.datastax.driver.core.Cluster.connectAsync(Cluster.java:334)
      9. com.datastax.driver.core.Cluster.connect(Cluster.java:284)
      9 frames
    3. dk.kb.webdanica
      Servlet.init
      1. dk.kb.webdanica.datamodel.Cassandra.<init>(Cassandra.java:28)
      2. dk.kb.webdanica.datamodel.CassandraSeedDAO.<init>(CassandraSeedDAO.java:46)
      3. dk.kb.webdanica.datamodel.CassandraSeedDAO.getInstance(CassandraSeedDAO.java:39)
      4. dk.kb.webdanica.webapp.Configuration.initDb(Configuration.java:85)
      5. dk.kb.webdanica.webapp.Configuration.<init>(Configuration.java:81)
      6. dk.kb.webdanica.webapp.Configuration.getInstance(Configuration.java:40)
      7. dk.kb.webdanica.webapp.Environment.<init>(Environment.java:274)
      8. dk.kb.webdanica.webapp.Servlet.init(Servlet.java:54)
      8 frames
    4. Glassfish Core
      HostConfig$DeployWar.run
      1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
      2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
      3. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
      4. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)
      5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
      6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      7. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
      8. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
      9. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
      10. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
      11. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
      11 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames