com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response

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 DataStax JIRA by Vishy Kasar, 1 year ago
[host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response
via DataStax JIRA by Vishy Kasar, 1 year ago
[host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response
com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response
at com.datastax.driver.core.Connection.setKeyspace(Connection.java:287)
at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:1723)
at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1295)
at com.datastax.driver.core.Cluster$Manager.access$900(Cluster.java:1064)
at com.datastax.driver.core.Cluster$Manager$4.runMayThrow(Cluster.java:1406)
at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)
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:744)

Users with the same issue

You are the first who have seen this exception.

Write tip

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