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


Solutions on the web2

Solution icon of datastax
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

Solution icon of datastax
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

Stack trace

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)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.