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;)))

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Christ Jou, 10 months ago
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;)))
via GitHub by ansarrafique
, 2 years ago
All host(s) tried for query failed (tried: /192.168.100.20 (com.datastax.driver.core.TransportException: [/192.168.100.20] Unexpected exception triggered (java.lang.NoSuchMethodError: com.google.common.collect.Maps.immutableEnumMap(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;)))
via myexception.cn by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1 ([/127.0.0.1] Cannot connect))
via GitHub by mbaig
, 11 months ago
All host(s) tried for query failed (tried: localhost/127.0.0.1 ([localhost/127.0.0.1] Unexpected error during transport initialization (com.datastax.driver.core.TransportException: [localhost/127.0.0.1] Channel has been closed)))
via Stack Overflow by Al A
, 1 year ago
All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
via codedmi.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
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.(Cluster.java:82)
at com.datastax.driver.core.Cluster.(Cluster.java:67)
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.(EntityManagerFactoryImpl.java:135)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
at com.impetus.kvapps.runner.AppRunner.main(AppRunner.java:59)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 2 weeks ago
4 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
37 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.