com.datastax.driver.core.exceptions.NoHostAvailableException

All host(s) tried for query failed (tried: localhost/127.0.0.1 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1] Unexpected exception triggered (java.lang.NoSuchMethodError: com.google.common.collect.Maps.immutableEnumMap(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;)))

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web145

  • via Unknown by Christ Jou,
  • Stack trace

    • com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1] Unexpected exception triggered (java.lang.NoSuchMethodError: com.google.common.collect.Maps.immutableEnumMap(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;))) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:186) at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:81) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:794) at com.datastax.driver.core.Cluster$Manager.access$100(Cluster.java:721) at com.datastax.driver.core.Cluster.<init>(Cluster.java:82) at com.datastax.driver.core.Cluster.<init>(Cluster.java:67) at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:690) at com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory.createPoolOrConnection(DSClientFactory.java:238) at com.impetus.kundera.loader.GenericClientFactory.load(GenericClientFactory.java:119) at com.impetus.kundera.configure.ClientMetadataBuilder.buildClientFactoryMetadata(ClientMetadataBuilder.java:55) at com.impetus.kundera.persistence.EntityManagerFactoryImpl.configureClientFactories(EntityManagerFactoryImpl.java:408) at com.impetus.kundera.persistence.EntityManagerFactoryImpl.configure(EntityManagerFactoryImpl.java:161) at com.impetus.kundera.persistence.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:135) at com.impetus.kundera.KunderaPersistence.createEntityManagerFactory(KunderaPersistence.java:85) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) at com.impetus.kvapps.runner.AppRunner.main(AppRunner.java:59)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    kidkid
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    33 more bugmates