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 Apache's JIRA Issue Tracker by Robert Stupp, 2 years ago
java.lang.RuntimeException: Error setting schema for test (query was: DROP TYPE IF EXISTS cql_test_keyspace.type_4)
java.lang.RuntimeException: java.lang.RuntimeException: Error setting schema for test (query was: DROP TYPE IF EXISTS cql_test_keyspace.type_4) at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:188)[classes/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_25] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_25]Caused by: java.lang.RuntimeException: Error setting schema for test (query was: DROP TYPE IF EXISTS cql_test_keyspace.type_4) at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:404)[classes/:na] at org.apache.cassandra.cql3.CQLTester.access$000(CQLTester.java:63)[classes/:na] at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:167)[classes/:na] ... 7 moreCaused by: java.lang.RuntimeException: Error validating query DROP TYPE IF EXISTS cql_test_keyspace.type_4 at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:374)[main/:na] at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:400)[classes/:na] ... 9 moreCaused by: org.apache.cassandra.exceptions.InvalidRequestException: Cannot drop user type cql_test_keyspace.type_4 as it is still used by function cql_test_keyspace.function_6 at org.apache.cassandra.cql3.statements.DropTypeStatement.validate(DropTypeStatement.java:83)[main/:na] at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:361)[main/:na] ... 10 more